pub enum HttpErrno {
Show 29 variants
CBMessageBegin,
CBUrl,
CBHeaderField,
CBHeaderValue,
CBHeadersComplete,
CBBody,
CBMessageComplete,
CBStatus,
InvalidEofState,
HeaderOverflow,
ClosedConnection,
InvalidVersion,
InvalidStatus,
InvalidMethod,
InvalidUrl,
InvalidHost,
InvalidPort,
InvalidPath,
InvalidQueryString,
InvalidFragment,
LFExpected,
InvalidHeaderToken,
InvalidContentLength,
InvalidChunkSize,
InvalidConstant,
InvalidInternalState,
Strict,
Paused,
Unknown,
}Expand description
HttpErrno defines the encountered error during parsing.
Variants§
CBMessageBegin
Error happened in message begin callback
CBUrl
Error happened in url callback
CBHeaderField
Error happened in header field callback
CBHeaderValue
Error happened in header value callback
CBHeadersComplete
Error happened in headers complete callback
CBBody
Error happened in body callback
CBMessageComplete
Error happened in message complete callback
CBStatus
Error happened in status callback
InvalidEofState
Invalid EOF state
HeaderOverflow
Header size is overflowed
ClosedConnection
Connection is closed
InvalidVersion
Invalid HTTP version
InvalidStatus
Invalid HTTP status
InvalidMethod
Invalid HTTP method
InvalidUrl
Invalid URL
InvalidHost
Invalid host
InvalidPort
Invalid port
InvalidPath
Invalid path
InvalidQueryString
Invalid query string
InvalidFragment
Invalid fragment
LFExpected
Line feed is expected
InvalidHeaderToken
Invalid header token
InvalidContentLength
Invalid content length
InvalidChunkSize
Invalid chunk size
InvalidConstant
Invalid constant
InvalidInternalState
Invalid internal state
Strict
Error happened in strict mode
Paused
Error happened when the parser is paused
Unknown
Unkown error