headers.proto

Package: headers.options.gloo.solo.io Types:

**Source File*8: github.com/solo-io/gloo/projects/gloo/api/v1/options/headers/headers.proto


HeaderManipulation

This plugin provides configuration options to append and remove headers from requests and responses HeaderManipulation can be specified on routes, virtual hosts, or weighted destinations

"requestHeadersToAdd": []solo.io.envoy.api.v2.core.HeaderValueOption
"requestHeadersToRemove": []string
"responseHeadersToAdd": []headers.options.gloo.solo.io.HeaderValueOption
"responseHeadersToRemove": []string
Field Type Description
requestHeadersToAdd []solo.io.envoy.api.v2.core.HeaderValueOption Specifies a list of HTTP headers that should be added to each request handled by this route or virtual host. For more information, including details on header value syntax, see the Envoy documentation .
requestHeadersToRemove []string Specifies a list of HTTP headers that should be removed from each request handled by this route or virtual host.
responseHeadersToAdd []headers.options.gloo.solo.io.HeaderValueOption Specifies a list of HTTP headers that should be added to each response handled by this route or host. For more information, including details on header value syntax, see the [Envoy documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers.html# .
responseHeadersToRemove []string Specifies a list of HTTP headers that should be removed from each response handled by this route or virtual host.

HeaderValueOption

Header name/value pair plus option to control append behavior.

"header": .headers.options.gloo.solo.io.HeaderValue
"append": .google.protobuf.BoolValue
Field Type Description
header .headers.options.gloo.solo.io.HeaderValue Header name/value pair that this option applies to.
append .google.protobuf.BoolValue Specifies if the value should be appended or overwrite an existing header. Defaults to true. If set to true, this maps to Envoy’s append_value: APPEND_IF_EXISTS_OR_ADD, where the value gets be appended the header’s value(s) if exists, or created if it does not. If set to false, this maps to Envoy’s append_value: OVERWRITE_IF_EXISTS_OR_ADD, where the header’s value will be overwritten if it exists, or created if it does not.

HeaderValue

Header name/value pair.

"key": string
"value": string
Field Type Description
key string Header name.
value string Header value.