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

NameTypeDescription
fieldheader nameMetadata field to override.
valueexpressionLiteral or variable expression; empty suppresses the field. Define all required local overrides together.

Working Example

Example Snippetnginx
grpc_set_header X-Lab-Edge bytemind;
Nginx Reference