# ovok_sdk.http.request

Canonical page: https://docs.ovok.com/python-sdk/reference/http/request

The description of one API call before it is sent.

## HttpRequest [#httprequest]

```python
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. |
