Share via


transport Package

Classes

AioHttpTransport

AioHttp HTTP sender implementation.

Fully asynchronous implementation using the aiohttp library.

AioHttpTransportResponse

Methods for accessing response body data.

AsyncHttpResponse

An AsyncHttpResponse ABC.

Allows for the asynchronous streaming of data from the response.

AsyncHttpTransport

An http sender ABC.

AsyncioRequestsTransport

Identical implementation as the synchronous RequestsTransport wrapped in a class with asynchronous methods. Uses the built-in asyncio event loop.

AsyncioRequestsTransportResponse

Asynchronous streaming of data from the response.

HttpRequest

Represents an HTTP request.

URL can be given without query parameters, to be added later using "format_parameters".

HttpResponse

Represent a HTTP response.

HttpTransport

An http sender ABC.

RequestsTransport

Implements a basic requests HTTP sender.

Since requests team recommends to use one session per requests, you should not consider this class as thread-safe, since it will use one Session per instance.

In this simple implementation:

  • You provide the configured session if you want to, or a basic session is created.
  • All kwargs received by "send" are sent to session.request directly
RequestsTransportResponse

Streaming of data from the response.