Skip to main content

Module metadata

Module metadata 

Source
Expand description

§Metadata Extraction Layer

This layer orchestrates the extraction of gRPC metadata from incoming HTTP requests.

It executes registered MetadataAnnotator functions to pull context (e.g., Request IDs, Auth Tokens) into a MetadataMap. The resulting metadata is stored in the request extensions, where it can be later retrieved by the generated code to populate the tonic::Request.

It also injects the MetadataForwardingConfig into the extensions, ensuring downstream components respect the configured security rules.

Structs§

MetadataLayer
A Tower middleware that executes metadata annotators.