pub struct ProxyRewriteHeaders {
pub set: Option<Value>,
pub add: Option<Value>,
pub remove: Option<Value>,
}Expand description
[add]: Append the new headers. The format is {“name”: “value”,…}. The values in the header can contain Nginx variables like $remote_addr and $balancer_ip. It also supports referencing the match result of regex_uri as a variable like $1-$2-$3
[set]: Overwrite the headers. If the header does not exist, it will be added. The format is {“name”: “value”, …}. The values in the header can contain Nginx variables like $remote_addr and $balancer_ip. It also supports referencing the match result of regex_uri as a variable like $1-$2-$3. Note that if you would like to set the Host header, use the host attribute instead
[remove]: Remove the headers. The format is [“name”, …]
Fields§
§set: Option<Value>§add: Option<Value>§remove: Option<Value>Trait Implementations§
Source§impl Clone for ProxyRewriteHeaders
impl Clone for ProxyRewriteHeaders
Source§fn clone(&self) -> ProxyRewriteHeaders
fn clone(&self) -> ProxyRewriteHeaders
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 ProxyRewriteHeaders
impl Debug for ProxyRewriteHeaders
Source§impl<'de> Deserialize<'de> for ProxyRewriteHeaders
impl<'de> Deserialize<'de> for ProxyRewriteHeaders
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 PartialEq for ProxyRewriteHeaders
impl PartialEq for ProxyRewriteHeaders
Source§impl Serialize for ProxyRewriteHeaders
impl Serialize for ProxyRewriteHeaders
impl StructuralPartialEq for ProxyRewriteHeaders
Auto Trait Implementations§
impl Freeze for ProxyRewriteHeaders
impl RefUnwindSafe for ProxyRewriteHeaders
impl Send for ProxyRewriteHeaders
impl Sync for ProxyRewriteHeaders
impl Unpin for ProxyRewriteHeaders
impl UnwindSafe for ProxyRewriteHeaders
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