Struct headers_ext::Server
source · 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
sourceimpl Header for Server
impl Header for Server
sourceconst NAME: &'static HeaderName = _
const NAME: &'static HeaderName = _
The name of this header.
sourceimpl Ord for Server
impl Ord for Server
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Server> for Server
impl PartialOrd<Server> for Server
sourcefn partial_cmp(&self, other: &Server) -> Option<Ordering>
fn partial_cmp(&self, other: &Server) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Server
impl StructuralEq for Server
impl StructuralPartialEq for Server
Auto Trait Implementations
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more