Enum dbs_uhttp::RequestError
source · [−]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
sourceimpl Debug for RequestError
impl Debug for RequestError
sourceimpl Display for RequestError
impl Display for RequestError
sourceimpl PartialEq<RequestError> for RequestError
impl PartialEq<RequestError> for RequestError
sourcefn eq(&self, other: &RequestError) -> bool
fn eq(&self, other: &RequestError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RequestError) -> bool
fn ne(&self, other: &RequestError) -> bool
This method tests for !=.
impl StructuralPartialEq for RequestError
Auto Trait Implementations
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more