pub struct Server(HeaderValueString);
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");
Tuple Fields§
§0: HeaderValueString
Implementations§
Trait Implementations§
source§impl Header for Server
impl Header for Server
source§impl Ord for Server
impl Ord for Server
source§impl PartialOrd for Server
impl PartialOrd for Server
impl Eq for Server
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl !Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)