Struct headers_ext::Server [−][src]
pub struct Server(_);
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
CERN/3.0 libwww/2.17
Example
use headers::Server; let server = Server::from_static("hyper/0.12.2");
Methods
impl Server[src]
impl Serverpub fn from_static(s: &'static str) -> Server[src]
pub fn from_static(s: &'static str) -> ServerConstruct a Server from a static string.
Panic
Panics if the static string is not a legal header value.
Trait Implementations
impl Debug for Server[src]
impl Debug for Serverfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<HeaderValue> for Server[src]
impl From<HeaderValue> for Serverfn from(value: HeaderValue) -> Server[src]
fn from(value: HeaderValue) -> ServerPerforms the conversion.