pub enum Http1ParseError {
Show 14 variants
Incomplete {
required: usize,
available: usize,
},
InvalidStartLine,
InvalidField,
InvalidContentLength,
ContentLengthOverflow,
ConflictingContentLength,
TransferEncodingWithContentLength,
InvalidTransferEncoding,
InvalidChunkedTransferEncoding,
InvalidChunkSize,
ChunkSizeOverflow,
InvalidChunkTerminator,
InvalidTrailer,
DecodedSizeOverflow,
}Expand description
Failure to parse HTTP/1 bytes.
Variants§
Incomplete
More bytes are required to complete the declared structure.
InvalidStartLine
The request or response start line is malformed.
InvalidField
A header or trailer field is malformed.
InvalidContentLength
A Content-Length value is invalid.
ContentLengthOverflow
A Content-Length value exceeds usize.
ConflictingContentLength
Multiple Content-Length values disagree.
TransferEncodingWithContentLength
Transfer-Encoding and Content-Length both occur.
InvalidTransferEncoding
Transfer coding syntax is malformed.
InvalidChunkedTransferEncoding
chunked is not final, is repeated, or has parameters.
InvalidChunkSize
A chunk size is malformed.
ChunkSizeOverflow
A chunk size exceeds usize.
InvalidChunkTerminator
A chunk data terminator is malformed.
InvalidTrailer
A trailer field or trailer terminator is malformed.
DecodedSizeOverflow
The decoded chunk data total exceeds usize.
Trait Implementations§
Source§impl Clone for Http1ParseError
impl Clone for Http1ParseError
impl Copy for Http1ParseError
Source§impl Debug for Http1ParseError
impl Debug for Http1ParseError
Source§impl Display for Http1ParseError
impl Display for Http1ParseError
impl Eq for Http1ParseError
Source§impl PartialEq for Http1ParseError
impl PartialEq for Http1ParseError
impl StructuralPartialEq for Http1ParseError
Auto Trait Implementations§
impl Freeze for Http1ParseError
impl RefUnwindSafe for Http1ParseError
impl Send for Http1ParseError
impl Sync for Http1ParseError
impl Unpin for Http1ParseError
impl UnsafeUnpin for Http1ParseError
impl UnwindSafe for Http1ParseError
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