GitHub

API reference for Request.

A call of the RPC tag with its decoded payload.

is_notification marks a request that gets no reply (a server notification, an inbound JSON-RPC notification); discard marks a client call made with discard=True: it keeps its id, and the server acknowledges it with a successful exit once the handler starts, then sends nothing more for it.

Attributes

AttributeTypeDescription
idRequestId
tagstr
payloadobject
headersHeaders = field(default_factory=Headers)
trace_idstr | None = None
span_idstr | None = None
sampledbool | None = None
is_notificationbool = False
discardbool = False

Functions

__init__

__init__(id, tag, payload, headers=Headers(), trace_id=None, span_id=None, sampled=None, is_notification=False, discard=False) -> None
ParameterTypeDescription
idRequestId
tagstr
payloadobject
headersHeaders = Headers()
trace_idstr | None = None
span_idstr | None = None
sampledbool | None = None
is_notificationbool = False
discardbool = False