alibabacloud_oss_v2.transport package¶
Submodules¶
alibabacloud_oss_v2.transport.requests_client module¶
HttpClient implement based on requests
- class alibabacloud_oss_v2.transport.requests_client.RequestsHttpClient(**kwargs)[source]¶
Bases:
HttpClient
Implements a basic requests HTTP sender.
In this implementation: - You provide the configured session if you want to, or a basic session is created. - All kwargs received by “do” are sent to session.request directly
- Parameters:
session (requests.Session, optional) – Request session to use instead of the default one.
adapters (requests.adapters, optional) – Request adapters to use instead of the default one.
- send(request: HttpRequest, **kwargs) HttpResponse [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.