pub enum Http1Error {
Show 20 variants
Io(Error),
UnexpectedEof,
HeadTooLarge,
TooManyHeaders,
InvalidRequestLine,
UnsupportedHttpVersion,
InvalidHeader,
DuplicateProxyAuthorization,
InvalidTarget,
InvalidAuthority,
TargetMismatch,
MissingHost,
HostMismatch,
InvalidContentLength,
AmbiguousFraming,
UnsupportedTransferEncoding,
BodyTooLarge,
UnexpectedBodyEof,
InvalidChunkedBody,
TrailersTooLarge,
}Variants§
Io(Error)
UnexpectedEof
HeadTooLarge
TooManyHeaders
InvalidRequestLine
UnsupportedHttpVersion
InvalidHeader
DuplicateProxyAuthorization
InvalidTarget
InvalidAuthority
TargetMismatch
MissingHost
HostMismatch
InvalidContentLength
AmbiguousFraming
UnsupportedTransferEncoding
BodyTooLarge
UnexpectedBodyEof
InvalidChunkedBody
TrailersTooLarge
Implementations§
Source§impl Http1Error
impl Http1Error
pub const fn status_code(&self) -> u16
pub const fn reason_phrase(&self) -> &'static str
Trait Implementations§
Source§impl Debug for Http1Error
impl Debug for Http1Error
Source§impl Display for Http1Error
impl Display for Http1Error
Source§impl Error for Http1Error
impl Error for Http1Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Http1Error
impl !UnwindSafe for Http1Error
impl Freeze for Http1Error
impl Send for Http1Error
impl Sync for Http1Error
impl Unpin for Http1Error
impl UnsafeUnpin for Http1Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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