About 23 results
Open links in new tab
  1. 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. …

  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 …

  3. 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.

  4. 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 …

  5. 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

  6. 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.

  7. 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.

  8. 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 …

  9. 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.

  10. 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 …