Struct hyper::header::Location [-] [+] [src]

pub struct Location(pub String);

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

Trait Implementations

impl Deref for Location

type Target = String

fn deref<'a>(&'a self) -> &'a String

impl DerefMut for Location

fn deref_mut<'a>(&'a mut self) -> &'a mut String

impl Header for Location

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<Self>

impl HeaderFormat for Location

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Display for Location

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Location

fn eq(&self, __arg_0: &Location) -> bool

fn ne(&self, __arg_0: &Location) -> bool

impl Debug for Location

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Location

fn clone(&self) -> Location

fn clone_from(&mut self, source: &Self)