sinch.core.adapters.requests_http_transport module

class sinch.core.adapters.requests_http_transport.HTTPTransportRequests(sinch)[source]

Bases: HTTPTransport

send(
endpoint: HTTPEndpoint,
) HTTPResponse[source]

Execute a single HTTP round-trip and return the response.

Implementations must prepare the request, authenticate, perform the HTTP call, deserialize the response, and return an HTTPResponse. They should not handle token refresh — that is done by request.

Parameters:

endpoint (HTTPEndpoint)

Return type:

HTTPResponse