pub fn forward_metadata<B>(req: &Request<B>, metadata: &mut MetadataMap)Expand description
Propagates HTTP headers from the incoming request to the gRPC metadata map.
This function iterates over the HTTP headers and converts them into gRPC metadata entries.
It automatically filters out transport-specific headers and enforces security rules
based on the provided configuration (or defaults if not specified via Gateway).
It also renames headers to have an x- prefix if they are not standard authentication headers
and do not already have the prefix, to indicate they originate from the gateway.
ยงParameters
req: The incoming HTTP request.metadata: The mutable gRPC metadata map to populate.config: Optional configuration for forwarding rules.