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

pub struct Referer(pub String);

The Referer header.

The Referer header is used by user agents to inform server about the page URL user has came from.

See alse RFC 1945, section 10.13.

Currently just a string, but maybe better replace it with url::Url or something like it.

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<Referer>

impl HeaderFormat for Referer

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

impl Display for Referer

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

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<Referer>

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 Debug for Referer

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

impl PartialEq for Referer

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

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

impl Clone for Referer

fn clone(&self) -> Referer

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

impl Debug for Referer

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

impl PartialEq for Referer

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

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

impl Clone for Referer

fn clone(&self) -> Referer

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