pub enum Version {
Http09,
Http10,
Http11,
}Expand description
HTTP protocol version
Variants§
Http09
HTTP/0.9 - The original protocol (1991)
Minimalist format: GET /path\r\n with raw response body.
Used for maximum performance in microservice communication.
Http10
HTTP/1.0 - Added headers and status codes (1996)
Http11
HTTP/1.1 - Current standard with keep-alive and chunking (1999)
RFC 7230 and related
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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