HTTP headers to gRPC context

Interceptor name

rest2RpcContext

Supported protocols

  • HTTP

Features

  • Inject HTTP request headers into gRPC metadata

Configuration

asjard:
  ## Interceptor related configuration
  interceptors:
    ## Client interceptor
    client:
      ## Inject REST request headers into RPC context
      rest2RpcContext:
        ## Allowed headers to inject
        # allowHeaders: ""
        ## Built-in allowed headers to inject
        # builtInAllowHeaders:
        #   - x-request-region
        #   - x-request-az
        #   - x-request-id
        #   - x-request-instance
        #   - x-forward-for
        #   - traceparent

Last updated