Struct hyperx::header::Location [−][src]
pub struct Location(_);
Expand description
Location
header, defined in
RFC7231
The Location
header field is used in some responses to refer to a
specific resource in relation to the response. The type of
relationship is defined by the combination of request method and
status code semantics.
ABNF
Location = URI-reference
Example values
/People.html#tim
http://www.example.net/index.html
Examples
use hyperx::header::{Location, TypedHeaders};
let mut headers = http::HeaderMap::new();
headers.encode(&Location::new("/People.html#tim"));
use hyperx::header::{Location, TypedHeaders};
let mut headers = http::HeaderMap::new();
headers.encode(&Location::new("http://www.example.com/index.html"));
Implementations
Trait Implementations
The HeaderName
from the http crate for this header.
Auto Trait Implementations
impl RefUnwindSafe for Location
impl UnwindSafe for Location
Blanket Implementations
Mutably borrows from an owned value. Read more