pub struct GRPCRouteRulesFiltersResponseHeaderModifier {
pub add: Option<Vec<GRPCRouteRulesFiltersResponseHeaderModifierAdd>>,
pub remove: Option<Vec<String>>,
pub set: Option<Vec<GRPCRouteRulesFiltersResponseHeaderModifierSet>>,
}
Expand description
ResponseHeaderModifier defines a schema for a filter that modifies response headers.
Support: Extended
Fields§
§add: Option<Vec<GRPCRouteRulesFiltersResponseHeaderModifierAdd>>
Add adds the given header(s) (name, value) to the request before the action. It appends to any existing values associated with the header name.
Input: GET /foo HTTP/1.1 my-header: foo
Config: add:
- name: “my-header” value: “bar,baz”
Output: GET /foo HTTP/1.1 my-header: foo,bar,baz
remove: Option<Vec<String>>
Remove the given header(s) from the HTTP request before the action. The value of Remove is a list of HTTP header names. Note that the header names are case-insensitive (see https://datatracker.ietf.org/doc/html/rfc2616#section-4.2).
Input: GET /foo HTTP/1.1 my-header1: foo my-header2: bar my-header3: baz
Config: remove: [“my-header1”, “my-header3”]
Output: GET /foo HTTP/1.1 my-header2: bar
set: Option<Vec<GRPCRouteRulesFiltersResponseHeaderModifierSet>>
Set overwrites the request with the given header (name, value) before the action.
Input: GET /foo HTTP/1.1 my-header: foo
Config: set:
- name: “my-header” value: “bar”
Output: GET /foo HTTP/1.1 my-header: bar
Trait Implementations§
source§impl Clone for GRPCRouteRulesFiltersResponseHeaderModifier
impl Clone for GRPCRouteRulesFiltersResponseHeaderModifier
source§fn clone(&self) -> GRPCRouteRulesFiltersResponseHeaderModifier
fn clone(&self) -> GRPCRouteRulesFiltersResponseHeaderModifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GRPCRouteRulesFiltersResponseHeaderModifier
impl Default for GRPCRouteRulesFiltersResponseHeaderModifier
source§fn default() -> GRPCRouteRulesFiltersResponseHeaderModifier
fn default() -> GRPCRouteRulesFiltersResponseHeaderModifier
source§impl<'de> Deserialize<'de> for GRPCRouteRulesFiltersResponseHeaderModifier
impl<'de> Deserialize<'de> for GRPCRouteRulesFiltersResponseHeaderModifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for GRPCRouteRulesFiltersResponseHeaderModifier
impl JsonSchema for GRPCRouteRulesFiltersResponseHeaderModifier
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for GRPCRouteRulesFiltersResponseHeaderModifier
impl PartialEq for GRPCRouteRulesFiltersResponseHeaderModifier
source§fn eq(&self, other: &GRPCRouteRulesFiltersResponseHeaderModifier) -> bool
fn eq(&self, other: &GRPCRouteRulesFiltersResponseHeaderModifier) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GRPCRouteRulesFiltersResponseHeaderModifier
Auto Trait Implementations§
impl Freeze for GRPCRouteRulesFiltersResponseHeaderModifier
impl RefUnwindSafe for GRPCRouteRulesFiltersResponseHeaderModifier
impl Send for GRPCRouteRulesFiltersResponseHeaderModifier
impl Sync for GRPCRouteRulesFiltersResponseHeaderModifier
impl Unpin for GRPCRouteRulesFiltersResponseHeaderModifier
impl UnwindSafe for GRPCRouteRulesFiltersResponseHeaderModifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)