Skip to content
Myr

Drop proxies parameter from the high level API (#485)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Drop `proxies` argument from high level API * Update state of Digest auth in docs * Add note on not supporting proxies at request level * Grammar tweak

authored by Yeray Diaz Diaz · committed by Florimond Manca · parent 074cd25 · Browse files · 3 files+6 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>

Diff stats

3 files+6 added−10 removed

  • other:+6 added−10 removed

3 files+6 added−10 removed

modified:docs/advanced.md+5 added
196 unmodified lines
197 # This request will be tunneled instead of forwarded.198 r = client.get("http://example.com")199```200201!!! note202203 Per request proxy configuration, i.e. `client.get(url, proxies=...)`,204 has not been implemented yet. To use proxies you must pass the proxy205 information at `Client` initialization.206207## Timeout fine-tuning208HTTPX offers various request timeout management options. Three types of timeouts are available: **connect** timeouts, 209**write** timeouts and **read** timeouts.210
67 unmodified lines
modified:docs/index.md+1 added-1 removed
modified:httpx/api.py-9 removed
4 unmodified lines
5from .models import (6 AuthTypes,7 CookieTypes,8 HeaderTypes,9 ProxiesTypes,9 QueryParamTypes,10 RequestData,11 RequestFiles,12 Response,
17 unmodified lines
30 cert: CertTypes = None,31 verify: VerifyTypes = True,32 stream: bool = False,33 trust_env: bool = None,35 proxies: ProxiesTypes = None,34) -> Response:35 with Client(http_versions=["HTTP/1.1"]) as client:36 return client.request(37 method=method,
26 unmodified lines
64 cert: CertTypes = None,65 verify: VerifyTypes = True,66 timeout: TimeoutTypes = None,67 trust_env: bool = None,70 proxies: ProxiesTypes = None,68) -> Response:69 return request(70 "GET",71 url,
22 unmodified lines
94 cert: CertTypes = None,95 verify: VerifyTypes = True,96 timeout: TimeoutTypes = None,97 trust_env: bool = None,101 proxies: ProxiesTypes = None,98) -> Response:99 return request(100 "OPTIONS",101 url,
22 unmodified lines
124 cert: CertTypes = None,125 verify: VerifyTypes = True,126 timeout: TimeoutTypes = None,127 trust_env: bool = None,132 proxies: ProxiesTypes = None,128) -> Response:129 return request(130 "HEAD",131 url,
25 unmodified lines
157 cert: CertTypes = None,158 verify: VerifyTypes = True,159 timeout: TimeoutTypes = None,160 trust_env: bool = None,166 proxies: ProxiesTypes = None,161) -> Response:162 return request(163 "POST",164 url,
28 unmodified lines
193 cert: CertTypes = None,194 verify: VerifyTypes = True,195 timeout: TimeoutTypes = None,196 trust_env: bool = None,203 proxies: ProxiesTypes = None,197) -> Response:198 return request(199 "PUT",200 url,
28 unmodified lines
229 cert: CertTypes = None,230 verify: VerifyTypes = True,231 timeout: TimeoutTypes = None,232 trust_env: bool = None,240 proxies: ProxiesTypes = None,233) -> Response:234 return request(235 "PATCH",236 url,
25 unmodified lines
262 cert: CertTypes = None,263 verify: VerifyTypes = True,264 timeout: TimeoutTypes = None,265 trust_env: bool = None,274 proxies: ProxiesTypes = None,266) -> Response:267 return request(268 "DELETE",269 url,
11 unmodified lines