Struct salvo::http::headers::ContentLocation [−][src]
pub struct ContentLocation(_);
Expand description
Content-Location
header, defined in
RFC7231
The header can be used by both the client in requests and the server
in responses with different semantics. Client sets Content-Location
to refer to the URI where original representation of the body was
obtained.
In responses Content-Location
represents URI for the representation
that was content negotiated, created or for the response payload.
ABNF
Content-Location = absolute-URI / partial-URI
Example values
/hypertext/Overview.html
http://www.example.org/hypertext/Overview.html
Examples
Trait Implementations
The name of this header.
pub fn decode<'i, I>(values: &mut I) -> Result<ContentLocation, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(values: &mut I) -> Result<ContentLocation, Error> where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of HeaderValue
s.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContentLocation
impl Send for ContentLocation
impl Sync for ContentLocation
impl Unpin for ContentLocation
impl UnwindSafe for ContentLocation
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more