Skip to main content
Version: 1.9

_HttpxTransport

HTTP transport adapter that keeps cookies in a Session instead of in the HTTPX client.

Response cookies are stored in the session when persist_cookies_per_session is enabled, and the Cookie header is rebuilt from it before every hop, so one client can be shared by all sessions. A Cookie header passed by the caller wins for as long as the redirect chain stays on its origin.

Index

Async Resource Clients

Methods

Async Resource Clients

handle_async_request

  • async handle_async_request(request): httpx.Response
  • Parameters

    • request: httpx.Request

    Returns httpx.Response

Methods

__init__

  • __init__(*, persist_cookies_per_session, kwargs): None
  • Initialize a new instance. Extra arguments are passed to httpx.AsyncHTTPTransport.


    Parameters

    • keyword-onlypersist_cookies_per_session: bool
    • kwargs: Any

    Returns None

Page Options