Struct poem::web::headers::Server [−][src]
pub struct Server(_);
Expand description
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");
Implementations
Trait Implementations
The name of this header.
Decode this type from an iterator of HeaderValue
s.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Server
impl UnwindSafe for Server
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more