
HTTPX
HTTPX A next-generation HTTP client for Python. HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2. …
QuickStart - HTTPX
HTTPX supports Basic and Digest HTTP authentication. To provide Basic authentication credentials, pass a 2-tuple of plaintext str or bytes objects as the auth argument to the request …
Async Support - HTTPX
HTTPX supports either asyncio or trio as an async environment. It will auto-detect which of those two to use as the backend for socket operations and concurrency primitives.
Clients - HTTPX
If not specified HTTPX will attempt to guess the MIME type based on the file name, with unknown file extensions defaulting to "application/octet-stream". If the file name is explicitly set to None …
Developer Interface - HTTPX
Alternative to httpx.request() that streams the response body instead of loading it into memory at once. Parameters: See httpx.request. See also: Streaming Responses
Requests Compatibility - HTTPX
HTTPX uses the mounts argument for HTTP proxying and transport routing. It can do much more than proxies and allows you to configure more than just the proxy route.
HTTP/2 Support - HTTPX
It is possible that a future version of httpx may enable HTTP/2 support by default. If you're issuing highly concurrent requests you might want to consider trying out our HTTP/2 support.
SSL - HTTPX
When making a request over HTTPS, HTTPX needs to verify the identity of the requested host. To do this, it uses a bundle of SSL certificates (a.k.a. CA bundle) delivered by a trusted …
Authentication - HTTPX
HTTPX can be configured to use a .netrc config file for authentication. The .netrc config file allows authentication credentials to be associated with specified hosts.
Proxies - HTTPX
Proxies HTTPX supports setting up HTTP proxies via the proxy parameter to be passed on client initialization or top-level API functions like httpx.get(..., proxy=...). Diagram of how a proxy …