pub enum HeadersMismatchError {
ResponseConnectionTypeMismatchError,
BodyTypeError(&'static str),
}Expand description
Errors related to invalid combinations of connection type and body type (Content-Length, Transfer-Encoding) in the headers
Variants§
ResponseConnectionTypeMismatchError
Connection type mismatch: Keep-Alive connection type in the response, while the request contained a Close connection type
BodyTypeError(&'static str)
Body type mismatch: the body type in the headers cannot be used with the specified connection type and HTTP protocol. This is often a user-error, but might also come from the other peer not following the protocol. I.e.:
- Chunked body with an HTTP1.0 connection
- Raw body with a Keep-Alive connection
- etc.
Trait Implementations§
Source§impl Clone for HeadersMismatchError
impl Clone for HeadersMismatchError
Source§fn clone(&self) -> HeadersMismatchError
fn clone(&self) -> HeadersMismatchError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeadersMismatchError
impl Debug for HeadersMismatchError
Source§impl Display for HeadersMismatchError
impl Display for HeadersMismatchError
Source§impl<E> From<HeadersMismatchError> for Error<E>
impl<E> From<HeadersMismatchError> for Error<E>
Source§fn from(e: HeadersMismatchError) -> Self
fn from(e: HeadersMismatchError) -> Self
Converts to this type from the input type.
Source§impl Hash for HeadersMismatchError
impl Hash for HeadersMismatchError
Source§impl PartialEq for HeadersMismatchError
impl PartialEq for HeadersMismatchError
impl Copy for HeadersMismatchError
impl Eq for HeadersMismatchError
impl StructuralPartialEq for HeadersMismatchError
Auto Trait Implementations§
impl Freeze for HeadersMismatchError
impl RefUnwindSafe for HeadersMismatchError
impl Send for HeadersMismatchError
impl Sync for HeadersMismatchError
impl Unpin for HeadersMismatchError
impl UnwindSafe for HeadersMismatchError
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