roboto.http.http_client
Module Contents
HttpClient
class roboto. http. http_client. HttpClient(base_headers=None, default_endpoint=None, default_auth=None, requester=None, extra_headers_provider=None, default_timeout=None, options=None)#View Source
Parameters
base_headers Optional[dict[str, str]]default_endpoint Optional[str]default_auth Optional[roboto.requester Optional[roboto.extra_headers_provider Optional[Callable[[], dict[str, str]]]default_timeout Optional[float]options Optional[roboto.Properties
HttpClient.auth_decorator
Return type: Optional[roboto. http. request. HttpRequestDecorator]
HttpClient.delete()
Parameters
url strdata Anyheaders Optional[dict]idempotent boolretry_wait Optional[roboto.timeout roboto.Return type
HttpClient.get()
Parameters
url strheaders Optional[dict]retry_wait Optional[roboto.idempotent booltimeout roboto.Return type
HttpClient.patch()
Parameters
url strdata Anyheaders Optional[dict]idempotent boolretry_wait Optional[roboto.timeout roboto.Return type
HttpClient.post()
Parameters
url strdata Anyheaders Optional[dict]idempotent boolretry_wait Optional[roboto.timeout roboto.Return type
HttpClient.put()
Parameters
url strdata Anyheaders Optional[dict]idempotent boolretry_wait Optional[roboto.timeout roboto.Return type
HttpClient.set_requester()
Parameters
requester roboto.HttpClient.url()
Parameters
path strReturn type
str
is_expected_to_be_transient()
The default retry predicate: whether exc is expected to be transient for request.
Parameters
request roboto.exc BaseExceptionReturn type
bool