pub struct HeaderEdit {
pub key: Rc<[u8]>,
pub val: Rc<[u8]>,
pub mode: HeaderEditMode,
}Expand description
A single header mutation collected from a Frontend configuration.
key and val are owned via Rc so a Frontend can be held by many
routing entries (pre, tree, post) without copying the underlying bytes.
mode controls how the per-stream apply_response_header_edits pass
emits the entry on the wire — see HeaderEditMode. Operator-supplied
[[...frontends.headers]] entries default to HeaderEditMode::Append
(preserving the legacy empty-val-deletes encoding); typed policies
(HSTS, future RFC-correct response policies) opt into
HeaderEditMode::SetIfAbsent.
Fields§
§key: Rc<[u8]>§val: Rc<[u8]>§mode: HeaderEditModeTrait Implementations§
Source§impl Clone for HeaderEdit
impl Clone for HeaderEdit
Source§fn clone(&self) -> HeaderEdit
fn clone(&self) -> HeaderEdit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderEdit
impl Debug for HeaderEdit
impl Eq for HeaderEdit
Source§impl PartialEq for HeaderEdit
impl PartialEq for HeaderEdit
Source§fn eq(&self, other: &HeaderEdit) -> bool
fn eq(&self, other: &HeaderEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderEdit
Auto Trait Implementations§
impl !Send for HeaderEdit
impl !Sync for HeaderEdit
impl Freeze for HeaderEdit
impl RefUnwindSafe for HeaderEdit
impl Unpin for HeaderEdit
impl UnsafeUnpin for HeaderEdit
impl UnwindSafe for HeaderEdit
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.