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#
| Attribute | Type | Description |
|---|---|---|
id | RequestId | |
tag | str | |
payload | object | |
headers | Headers = field(default_factory=Headers) | |
trace_id | str | None = None | |
span_id | str | None = None | |
sampled | bool | None = None | |
is_notification | bool = False | |
discard | bool = False |
Functions#
__init__#
__init__(id, tag, payload, headers=Headers(), trace_id=None, span_id=None, sampled=None, is_notification=False, discard=False) -> None| Parameter | Type | Description |
|---|---|---|
id | RequestId | |
tag | str | |
payload | object | |
headers | Headers = Headers() | |
trace_id | str | None = None | |
span_id | str | None = None | |
sampled | bool | None = None | |
is_notification | bool = False | |
discard | bool = False |