alibabacloud_oss_v2.aio.transport package

Submodules

alibabacloud_oss_v2.aio.transport.aiohttp_client module

AsyncHttpClient implement based on aiohttp

class alibabacloud_oss_v2.aio.transport.aiohttp_client.AioHttpClient(**kwargs)[source]

Bases: AsyncHttpClient

Implements a basic aiohttp HTTP sender.

async close()[source]

Close the session if it is not externally owned.

async open()[source]

Assign new session if one does not already exist.

async send(request: HttpRequest, **kwargs: Any) AsyncHttpResponse[source]

Sends an HTTP request and returns an HTTP response.

An error is returned if caused by client policy (such as CheckRedirect), or failure to speak HTTP (such as a network connectivity problem). A non-2xx status code doesn’t cause an error.

Parameters:

request (Any) – the http request sent to server.

Return type:

httpResponse

Returns:

The response object.

Module contents