Файли
openidea/crates/ide-http/Cargo.toml
T
audichuang 652798bc53 feat(http): follow the macOS PAC script in Auto proxy mode (#6783)
reqwest's system proxy ignores macOS Automatic Proxy Configuration. In Auto mode, when a PAC URL is enabled and no *_PROXY variable is set, the script is fetched in the background (refreshed every 5 minutes, retried after failures) and evaluated per request with CFNetwork, caching routes per host. Until the script loads, or when it gives no proxy, requests use the manual system proxy as before. The cached shared client is rebuilt when the PAC URL changes.

Closes #6761

Co-authored-by: audichuang <[email protected]>
2026-11-29 15:17:21 +08:00

33 рядки
1.2 KiB
TOML

[package]
name = "ide-http"
description = "HTTP Client: .http request files, environments, execution and response history"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
ide-core.workspace = true
ide-vfs.workspace = true
serde.workspace = true
serde_json = { workspace = true, features = ["raw_value"] }
specta.workspace = true
# `net`: tunnel.rs opens connections reqwest does not (a WebSocket).
tokio = { workspace = true, features = ["net"] }
parking_lot.workspace = true
base64.workspace = true
http = "1"
reqwest.workspace = true
# The system proxy reqwest reads, to notice when it changes (see `client::shared`).
hyper-util = { version = "0.1", default-features = false, features = ["client-proxy", "client-proxy-system"] }
rustls.workspace = true
rustls-platform-verifier.workspace = true
uuid.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]
objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFArray", "CFDictionary", "CFError", "CFNumber", "CFString", "CFURL"] }
objc2-cf-network = { version = "0.3", default-features = false, features = ["std", "CFProxySupport"] }
[dev-dependencies]
tokio = { workspace = true, features = ["net"] }
tempfile.workspace = true