Skip to main content
Version: Next

RequestDict

A request stored in the request queue, including its metadata and processing state.

Hierarchy

Index

Properties

error_messages

error_messages: NotRequired[list[str]]

Error messages recorded from failed processing attempts.

handled_at

handled_at: NotRequired[str | None]

The timestamp when the request was marked as handled, if applicable.

headers

headers: NotRequired[dict[str, Any] | None]

HTTP headers sent with the request.

id

id: NotRequired[str]

A unique identifier assigned to the request.

loaded_url

loaded_url: NotRequired[str | None]

The final URL that was loaded, after redirects (if any).

method

method: NotRequired[Literal[GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH]]

no_retry

no_retry: NotRequired[bool | None]

Indicates whether the request should not be retried if processing fails.

payload

payload: NotRequired[str | dict[str, Any] | None]

The request payload, typically used with POST or PUT requests.

retry_count

retry_count: NotRequired[int]

The number of times this request has been retried.

unique_key

unique_key: NotRequired[str]

A unique key used for request de-duplication. Requests with the same unique key are considered identical.

url

url: NotRequired[str]

The URL of the request.

user_data

user_data: NotRequired[dict[str, Any]]