pub enum Error {
Http(Error),
NoPath,
UnexpectedEnd,
HeaderTooLong,
InvalidPath,
InvalidMethod,
InvalidVersion,
InvalidStatusCode,
Syntax,
IllegalName,
IllegalValue,
NoHost,
}
Expand description
A general error from parsing.
Variants§
Http(Error)
NoPath
No path was parsed as part of a Request
UnexpectedEnd
Done reading and processing
HeaderTooLong
The header is too long.
‘header’ is the data before \r\n\r\n
, and
may be invalid data not containing a \r\n\r\n
InvalidPath
The path (Uri
) is invalid and could not be parsed
InvalidMethod
The Method
is invalid
InvalidVersion
The Version
is invalid
InvalidStatusCode
The StatusCode
is invalid
Syntax
A syntax error in the data.
Often means the request isn’t what we expect; maybe it’s transmitted over HTTPS.
IllegalName
There are illegal bytes in a HeaderName
IllegalValue
There are illegal bytes in a HeaderValue
NoHost
No host was found and no default host was specified.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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