Struct iron::headers::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 self) -> &'a String

impl DerefMut for Location

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

impl Header for Location

fn header_name() -> &'static str

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

impl HeaderFormat for Location

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

impl Display for Location

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

Derived Implementations

impl PartialEq<Location> 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<(), Error>

impl Clone for Location

fn clone(&self) -> Location

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