Struct tiny_http::Header [−][src]
pub struct Header {
pub field: HeaderField,
pub value: AsciiString,
}Expand description
Represents a HTTP header.
Fields
field: HeaderFieldvalue: AsciiStringImplementations
Builds a Header from two Vec<u8>s or two &[u8]s.
Example:
let header = tiny_http::Header::from_bytes(&b"Content-Type"[..], &b"text/plain"[..]).unwrap();Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
Blanket Implementations
Mutably borrows from an owned value. Read more