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