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

pub struct Referer(pub String);

Referer header, defined in RFC7231

The Referer [sic] header field allows the user agent to specify a URI reference for the resource from which the target URI was obtained (i.e., the "referrer", though the field name is misspelled). A user agent MUST NOT include the fragment and userinfo components of the URI reference, if any, when generating the Referer field value.

ABNF

Referer = absolute-URI / partial-URI

Example values

Trait Implementations

impl Deref for Referer

type Target = String

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

impl DerefMut for Referer

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

impl Header for Referer

fn header_name() -> &'static str

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

impl HeaderFormat for Referer

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

impl Display for Referer

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

Derived Implementations

impl PartialEq for Referer

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

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

impl Debug for Referer

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

impl Clone for Referer

fn clone(&self) -> Referer

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