Enum kvarn_async::prelude::parse::Error
source · 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
InvalidMethod
The Method
is invalid
InvalidVersion
The Version
is invalid
InvalidStatusCode
The StatusCode
is invalid
Syntax
A syntax error in the data.
Often means the request isn’t what we expect; maybe it’s transmitted over HTTPS.
IllegalName
There are illegal bytes in a HeaderName
IllegalValue
There are illegal bytes in a HeaderValue
NoHost
No host was found and no default host was specified.