[−][src]Struct saphir::header::HeaderView
Returned with the HeadersItems
iterator.
Methods
impl<'a> HeaderView<'a>
[src]
pub fn is<H>(&self) -> bool where
H: Header,
[src]
H: Header,
Check if a HeaderView is a certain Header.
pub fn name(&self) -> &'a str
[src]
Get the Header name as a slice.
pub fn value<H>(&self) -> Option<&'a H> where
H: Header,
[src]
H: Header,
Cast the value to a certain Header type.
pub fn value_string(&self) -> String
[src]
Get just the header value as a String.
This will join multiple values of this header with a ,
.
Warning: This may not be the format that should be used to send a Request or Response.
pub fn raw(&self) -> &Raw
[src]
Access the raw value of the header.
Trait Implementations
impl<'a> FromIterator<HeaderView<'a>> for Headers
[src]
fn from_iter<I>(iter: I) -> Headers where
I: IntoIterator<Item = HeaderView<'a>>,
[src]
I: IntoIterator<Item = HeaderView<'a>>,
impl<'a> Display for HeaderView<'a>
[src]
impl<'a> Extend<HeaderView<'a>> for Headers
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = HeaderView<'a>>,
[src]
I: IntoIterator<Item = HeaderView<'a>>,
impl<'a> Debug for HeaderView<'a>
[src]
Auto Trait Implementations
impl<'a> !Send for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,