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

pub struct Server(pub String);

Server header, defined in RFC7231

The Server header field contains information about the software used by the origin server to handle the request, which is often used by clients to help identify the scope of reported interoperability problems, to work around or tailor requests to avoid particular server limitations, and for analytics regarding server or operating system use. An origin server MAY generate a Server field in its responses.

ABNF

Server = product *( RWS ( product / comment ) )

Example values

Trait Implementations

impl Deref for Server

type Target = String

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

impl DerefMut for Server

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

impl Header for Server

fn header_name() -> &'static str

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

impl HeaderFormat for Server

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

impl Display for Server

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

Derived Implementations

impl PartialEq for Server

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

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

impl Debug for Server

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

impl Clone for Server

fn clone(&self) -> Server

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