HTTP gRPC directives
grpc_set_header directive
http, server, location. Replaces or appends request metadata. Inherits parent directives only when none are defined at the current level.
Formal Syntax & Structure
nginx syntaxnginx
grpc_set_header field value;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| field | header name | Metadata field to override. |
| value | expression | Literal or variable expression; empty suppresses the field. Define all required local overrides together. |
Working Example
Example Snippetnginx
grpc_set_header X-Lab-Edge bytemind;