sinch.core.adapters.requests_http_transport module

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

Bases: HTTPTransport

Sync HTTP transport using the requests library.

send_request(
request_data: HttpRequest,
) HTTPResponse[source]

Performs the HTTP call with requests and maps the result to an HTTPResponse.

Parameters:

request_data (HttpRequest) – The prepared request to send.

Returns:

The HTTP response.

Return type:

HTTPResponse