pub struct HttpRouteHeaderModifier {
pub add: Option<HashMap<String, String>>,
pub remove: Option<Vec<String>>,
pub set: Option<HashMap<String, String>>,
}Expand description
The specification for modifying HTTP header in HTTP request and HTTP response.
This type is not used in any activity, and only used as part of another schema.
Fields§
§add: Option<HashMap<String, String>>Add the headers with given map where key is the name of the header, value is the value of the header.
remove: Option<Vec<String>>Remove headers (matching by header names) specified in the list.
set: Option<HashMap<String, String>>Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
Trait Implementations§
Source§impl Clone for HttpRouteHeaderModifier
impl Clone for HttpRouteHeaderModifier
Source§fn clone(&self) -> HttpRouteHeaderModifier
fn clone(&self) -> HttpRouteHeaderModifier
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 HttpRouteHeaderModifier
impl Debug for HttpRouteHeaderModifier
Source§impl Default for HttpRouteHeaderModifier
impl Default for HttpRouteHeaderModifier
Source§fn default() -> HttpRouteHeaderModifier
fn default() -> HttpRouteHeaderModifier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpRouteHeaderModifier
impl<'de> Deserialize<'de> for HttpRouteHeaderModifier
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
Source§impl Serialize for HttpRouteHeaderModifier
impl Serialize for HttpRouteHeaderModifier
impl Part for HttpRouteHeaderModifier
Auto Trait Implementations§
impl Freeze for HttpRouteHeaderModifier
impl RefUnwindSafe for HttpRouteHeaderModifier
impl Send for HttpRouteHeaderModifier
impl Sync for HttpRouteHeaderModifier
impl Unpin for HttpRouteHeaderModifier
impl UnwindSafe for HttpRouteHeaderModifier
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