Struct trillium_http_types::headers::HeaderValue [−][src]
pub struct HeaderValue { /* fields omitted */ }Expand description
A header value.
Implementations
Create a new HeaderValue from a Vec of ASCII bytes.
Error
This function will error if the bytes is not valid ASCII.
Converts a vector of bytes to a HeaderValue without checking that the string contains
valid ASCII.
Safety
This function is unsafe because it does not check that the bytes passed to it are valid ASCII. If this constraint is violated, it may cause memory unsafety issues with future users of the HeaderValue, as the rest of the library assumes that Strings are valid ASCII.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Iter = IntoIter<HeaderValue>
type Iter = IntoIter<HeaderValue>Returned iterator over header values which this type may correspond to.
Converts this object to an iterator of resolved HeaderValues.
Auto Trait Implementations
impl RefUnwindSafe for HeaderValueimpl Send for HeaderValueimpl Sync for HeaderValueimpl Unpin for HeaderValueimpl UnwindSafe for HeaderValueBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V