module GRPC
Nested
Definitions
HEADER_POLICY
Custom header policy for gRPC. Extends Protocol::HTTP::Headers::POLICY with gRPC-specific headers.
Implementation
HEADER_POLICY = Protocol::HTTP::Headers::POLICY.merge(
"grpc-status" => Header::Status,
"grpc-message" => Header::Message
# By default, all other headers follow standard HTTP policy, but gRPC allows most metadata to be sent as trailers.
).freeze