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

NameTypeDescription
methodstrHTTP method.
pathstrPath relative to the client's base path, including any query string.
bodyAnyJSON-serialisable body, a pre-encoded string, or None.
headersMapping[str, str]Extra request headers.
idempotentbool | NoneWhether the call may be retried; None decides by method.

Last updated on

On this page