Struct http_stub::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

Example

use hyper::header::{Headers, Server};

let mut headers = Headers::new();
headers.set(Server("hyper/0.5.2".to_owned()));