API referencehttp
ovok_sdk.http.request
The description of one API call before it is sent.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+2ba84b0
The description of one API call before it is sent.
HttpRequest
HttpRequest(
method: str,
path: str,
body: Any = None,
headers: Mapping[str, str] = dict(),
idempotent: bool | None = None,
)A call on the Ovok API; idempotent overrides the method's own retry safety.
Attributes
| Name | Type | Description |
|---|---|---|
method | str | HTTP method. |
path | str | Path relative to the client's base path, including any query string. |
body | Any | JSON-serialisable body, a pre-encoded string, or None. |
headers | Mapping[str, str] | Extra request headers. |
idempotent | bool | None | Whether the call may be retried; None decides by method. |
Last updated on