pub struct HttpHeader {
pub name: String,
pub value: Option<String>,
pub position: usize,
pub source: HeaderSource,
}
Expand description
Represents an HTTP header with metadata
Fields§
§name: String
§value: Option<String>
§position: usize
Position in the original header sequence (0-based)
source: HeaderSource
Source protocol/type of this header
Implementations§
Source§impl HttpHeader
impl HttpHeader
Trait Implementations§
Source§impl Clone for HttpHeader
impl Clone for HttpHeader
Source§fn clone(&self) -> HttpHeader
fn clone(&self) -> HttpHeader
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 HttpHeader
impl Debug for HttpHeader
Source§impl Display for HttpHeader
impl Display for HttpHeader
Source§impl PartialEq for HttpHeader
impl PartialEq for HttpHeader
impl StructuralPartialEq for HttpHeader
Auto Trait Implementations§
impl Freeze for HttpHeader
impl RefUnwindSafe for HttpHeader
impl Send for HttpHeader
impl Sync for HttpHeader
impl Unpin for HttpHeader
impl UnwindSafe for HttpHeader
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