Enum http_parser::HttpErrno
[−]
[src]
pub enum HttpErrno { 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, }
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
Trait Implementations
impl PartialEq for HttpErrno
[src]
fn eq(&self, __arg_0: &HttpErrno) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for HttpErrno
[src]
impl Copy for HttpErrno
[src]
impl Clone for HttpErrno
[src]
fn clone(&self) -> HttpErrno
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more