Skip to content
Myr

Keep clients in sync (#3042)

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

* Keep clients in sync * Update httpx/_client.py * Update httpx/_client.py

authored by Kar Petrosyan · committed by GitHub · parent c6907c2 · Browse files · 1 file+14 added−1 removed
This commit

State

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

Diff stats

1 file+14 added−1 removed

  • other:+14 added−1 removed

1 file+14 added−1 removed

modified:httpx/_client.py+14 added-1 removed
596 unmodified lines
597 * **cert** - *(optional)* An SSL certificate used by the requested host598 to authenticate the client. Either a path to an SSL certificate file, or599 two-tuple of (certificate file, key file), or a three-tuple of (certificate600 file, key file, password).601 * **http2** - *(optional)* A boolean indicating if HTTP/2 support should be602 enabled. Defaults to `False`.603 * **proxy** - *(optional)* A proxy URL where all the traffic should be routed.604 * **proxies** - *(optional)* A dictionary mapping proxy keys to proxy605 URLs.606 * **timeout** - *(optional)* The timeout configuration to use when sending
705 unmodified lines
1312 """1313 An asynchronous HTTP client, with connection pooling, HTTP/2, redirects,1314 cookie persistence, etc.13151316 It can be shared between tasks.13171318 Usage:13191320 ```python1321 >>> async with httpx.AsyncClient() as client:
225 unmodified lines
1547 are merged with client-level configuration.15481549 [0]: /advanced/#merging-of-configuration1550 """15511552 if cookies is not None: # pragma: no cover1553 message = (1554 "Setting per-request cookies=<...> is being deprecated, because "1555 "the expected behaviour on cookie persistence is ambiguous. Set "1556 "cookies directly on the client instance instead."1557 )1558 warnings.warn(message, DeprecationWarning)15591560 request = self.build_request(1561 method=method,1562 url=url,1563 content=content,
104 unmodified lines
1668 await response.aread()16691670 return response16711659 except BaseException as exc: # pragma: no cover1672 except BaseException as exc:1673 await response.aclose()1674 raise exc16751676 async def _send_handling_auth(
375 unmodified lines