pub struct Header { /* private fields */ }
Expand description
Wrapper type for a header line.
Implementations
sourceimpl Header
impl Header
pub fn new(name: &str, value: &str) -> Self
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The header name.
let header = "X-Forwarded-For: 127.0.0.1"
.parse::<ureq::Header>()
.unwrap();
assert_eq!("X-Forwarded-For", header.name());
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more