pub enum RequestError {
BodyWithoutPendingRequest,
HeaderError(HttpHeaderError),
HeadersWithoutPendingRequest,
InvalidHttpMethod(&'static str),
InvalidHttpVersion(&'static str),
InvalidRequest,
InvalidUri(&'static str),
Overflow,
Underflow,
SizeLimitExceeded(usize, usize),
}
Expand description
Errors associated with parsing the HTTP Request from a u8 slice.
Variants§
BodyWithoutPendingRequest
No request was pending while the request body was being parsed.
HeaderError(HttpHeaderError)
Header specified is either invalid or not supported by this HTTP implementation.
HeadersWithoutPendingRequest
No request was pending while the request headers were being parsed.
InvalidHttpMethod(&'static str)
The HTTP Method is not supported or it is invalid.
InvalidHttpVersion(&'static str)
The HTTP Version in the Request is not supported or it is invalid.
InvalidRequest
The Request is invalid and cannot be served.
InvalidUri(&'static str)
Request URI is invalid.
Overflow
Overflow occurred when parsing a request.
Underflow
Underflow occurred when parsing a request.
SizeLimitExceeded(usize, usize)
Payload too large.
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl PartialEq for RequestError
impl PartialEq for RequestError
impl Eq for RequestError
impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
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