pub struct HeaderFilterConfig {
pub add_request_headers: HashMap<String, String>,
pub remove_request_headers: Vec<String>,
pub add_response_headers: HashMap<String, String>,
pub remove_response_headers: Vec<String>,
}
Expand description
Configuration for a header modification filter.
Fields§
§add_request_headers: HashMap<String, String>
Headers to add or replace in the request
remove_request_headers: Vec<String>
Headers to remove from the request
add_response_headers: HashMap<String, String>
Headers to add or replace in the response
remove_response_headers: Vec<String>
Headers to remove from the response
Trait Implementations§
Source§impl Clone for HeaderFilterConfig
impl Clone for HeaderFilterConfig
Source§fn clone(&self) -> HeaderFilterConfig
fn clone(&self) -> HeaderFilterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HeaderFilterConfig
impl Debug for HeaderFilterConfig
Source§impl Default for HeaderFilterConfig
impl Default for HeaderFilterConfig
Source§fn default() -> HeaderFilterConfig
fn default() -> HeaderFilterConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeaderFilterConfig
impl<'de> Deserialize<'de> for HeaderFilterConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HeaderFilterConfig
impl RefUnwindSafe for HeaderFilterConfig
impl Send for HeaderFilterConfig
impl Sync for HeaderFilterConfig
impl Unpin for HeaderFilterConfig
impl UnwindSafe for HeaderFilterConfig
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
Mutably borrows from an owned value. Read more