http: add headers via local reply mapper (#12093)

Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com>

Mirrored from https://github.com/envoyproxy/envoy @ 23df4fcf4ec14eeb905708bf3b771af1f1371f76
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 2bbc01e06f
commit 2087799887
  1. 6
      envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto
  2. 6
      envoy/extensions/filters/network/http_connection_manager/v4alpha/http_connection_manager.proto

@ -605,6 +605,7 @@ message LocalReplyConfig {
}
// The configuration to filter and change local response.
// [#next-free-field: 6]
message ResponseMapper {
// Filter to determine if this mapper should apply.
config.accesslog.v3.AccessLogFilter filter = 1 [(validate.rules).message = {required: true}];
@ -619,6 +620,11 @@ message ResponseMapper {
// A per mapper `body_format` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.
// It will be used when this mapper is matched.
config.core.v3.SubstitutionFormatString body_format_override = 4;
// HTTP headers to add to a local reply. This allows the response mapper to append, to add
// or to override headers of any local reply before it is sent to a downstream client.
repeated config.core.v3.HeaderValueOption headers_to_add = 5
[(validate.rules).repeated = {max_items: 1000}];
}
message Rds {

@ -607,6 +607,7 @@ message LocalReplyConfig {
}
// The configuration to filter and change local response.
// [#next-free-field: 6]
message ResponseMapper {
option (udpa.annotations.versioning).previous_message_type =
"envoy.extensions.filters.network.http_connection_manager.v3.ResponseMapper";
@ -624,6 +625,11 @@ message ResponseMapper {
// A per mapper `body_format` to override the :ref:`body_format <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.LocalReplyConfig.body_format>`.
// It will be used when this mapper is matched.
config.core.v4alpha.SubstitutionFormatString body_format_override = 4;
// HTTP headers to add to a local reply. This allows the response mapper to append, to add
// or to override headers of any local reply before it is sent to a downstream client.
repeated config.core.v4alpha.HeaderValueOption headers_to_add = 5
[(validate.rules).repeated = {max_items: 1000}];
}
message Rds {

Loading…
Cancel
Save