Protobuf Definitions
Read more about the protobuf definitions here.
proto
¤
Helper functions for the gRPC+protobuf protocol. For more information, see: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
Modules:
Name | Description |
---|---|
headers |
|
Classes:
Name | Description |
---|---|
SupportsToProto |
|
GrpcError |
When an application or runtime error occurs during an RPC a |
ProtoParseError |
|
Functions:
Name | Description |
---|---|
to_proto |
|
encode_message |
Encode to a length-prefixed message. |
parse_data |
Decode a DATA frame (optionally, with Trailers) into a protobuf message. |
Attributes:
Name | Type | Description |
---|---|---|
T_co |
|
|
T |
|
|
ProtoError |
|
SupportsToProto
¤
GrpcError
¤
GrpcError(
message: str,
raw_data: bytes | None = None,
*,
status: int | None = None,
status_message: bytes | None = None,
status_details: bytes | None = None,
)
Bases: Exception
When an application or runtime error occurs during an RPC a
Status
and Status-Message
are delivered in Trailers
.
Methods:
Name | Description |
---|---|
from_trailers |
|
Attributes:
Name | Type | Description |
---|---|---|
raw_data |
Length-prefixed message |
|
status |
1*DIGIT ; 0-9 |
|
status_message |
Percent-Encoded |
|
status_details |
|
ProtoParseError
¤
parse_data
¤
Decode a DATA frame (optionally, with Trailers) into a protobuf message.
headers
¤
Functions:
Name | Description |
---|---|
get_headers |
|
Attributes:
Name | Type | Description |
---|---|---|
PLATFORM_VERSION |
|
|
DEFAULT_HEADERS_GRPC |
|
DEFAULT_HEADERS_GRPC
module-attribute
¤
DEFAULT_HEADERS_GRPC = {
None: DEFAULT_HEADERS,
"Accept": "*/*",
"fr24-device-id": "web-000000000-000000000000000000000",
"fr24-platform": f"web-{PLATFORM_VERSION}",
"x-envoy-retry-grpc-on": "unavailable",
"Content-Type": "application/grpc-web+proto",
"X-User-Agent": "grpc-web-javascript/0.1",
"X-Grpc-Web": "1",
"DNT": "1",
}
v1_pb2
¤
Generated protocol buffer code.