kickerde_api_client.provider
Abstract HTTP response provider for testability.
Classes
Abstract HTTP response provider for testability. |
|
The default provider, which issues actual HTTP requests. |
Module Contents
- class kickerde_api_client.provider.ResponseProvider
Bases:
abc.ABCAbstract HTTP response provider for testability.
- abstract get(path)
- Async:
- Parameters:
path (str) –
- Return type:
str
Returns an HTTP response as a string.
- Parameters:
path (str) – Relative path to the endpoint
- Returns:
HTTP response payload
- Return type:
str
- class kickerde_api_client.provider.DefaultResponseProvider(http_client=None, base_url=DEFAULT_ENDPOINT_URL)
Bases:
ResponseProviderThe default provider, which issues actual HTTP requests.
- Parameters:
http_client (httpx.AsyncClient | None) –
base_url (str) –
- async get(path)
Returns an HTTP response as a string.
- Parameters:
path (str) – Relative path to the endpoint
- Returns:
HTTP response payload
- Return type:
str