class Generic
Represents generic or custom headers that can be used in trailers.
This class is used as the default policy for headers not explicitly defined in the POLICY hash.
It allows generic headers to be used in HTTP trailers, which is important for:
- Custom application headers.
- gRPC status headers (grpc-status, grpc-message).
- Headers used by proxies and middleware.
- Future HTTP extensions.
Definitions
def self.trailer?
Whether this header is acceptable in HTTP trailers. Generic headers are allowed in trailers by default to support extensibility.
Signature
-
returns
Boolean true, generic headers are allowed in trailers.
Implementation
def self.trailer?
true
end