Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

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]
extra_headers_provider Optional[Callable[[], dict[str, str]]]
default_timeout Optional[float]

Properties

HttpClient.auth_decorator

HttpClient.delete()

delete(url, data=None, headers=None, idempotent=True, retry_wait=None, timeout=NotSet)#View Source

Parameters

url str
data Any
headers Optional[dict]
idempotent bool
retry_wait Optional[roboto.http.request.RetryWaitFn]

HttpClient.get()

get(url, headers=None, retry_wait=None, idempotent=True, timeout=NotSet)#View Source

Parameters

url str
headers Optional[dict]
retry_wait Optional[roboto.http.request.RetryWaitFn]
idempotent bool

HttpClient.patch()

patch(url, data=None, headers=None, idempotent=True, retry_wait=None, timeout=NotSet)#View Source

Parameters

url str
data Any
headers Optional[dict]
idempotent bool
retry_wait Optional[roboto.http.request.RetryWaitFn]

HttpClient.post()

post(url, data=None, headers=None, idempotent=False, retry_wait=None, timeout=NotSet)#View Source

Parameters

url str
data Any
headers Optional[dict]
idempotent bool
retry_wait Optional[roboto.http.request.RetryWaitFn]

HttpClient.put()

put(url, data=None, headers=None, idempotent=True, retry_wait=None, timeout=NotSet)#View Source

Parameters

url str
data Any
headers Optional[dict]
idempotent bool
retry_wait Optional[roboto.http.request.RetryWaitFn]

HttpClient.set_requester()

set_requester(requester)#View Source

HttpClient.url()

url(path)#View Source

Parameters

path str

Return type

str

is_expected_to_be_transient()

roboto.http.http_client.is_expected_to_be_transient(request, exc)#View Source

The default retry predicate: whether exc is expected to be transient for request.

Parameters

exc BaseException

Return type

bool

logger

roboto.http.http_client.logger#View Source

Was this page helpful?