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

Error happened in message begin callback

Error happened in url callback

Error happened in header field callback

Error happened in header value callback

Error happened in headers complete callback

Error happened in body callback

Error happened in message complete callback

Error happened in status callback

Invalid EOF state

Header size is overflowed

Connection is closed

Invalid HTTP version

Invalid HTTP status

Invalid HTTP method

Invalid URL

Invalid host

Invalid port

Invalid path

Invalid query string

Invalid fragment

Line feed is expected

Invalid header token

Invalid content length

Invalid chunk size

Invalid constant

Invalid internal state

Error happened in strict mode

Error happened when the parser is paused

Unkown error

Trait Implementations

impl PartialEq for HttpErrno
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HttpErrno
[src]

impl Copy for HttpErrno
[src]

impl Clone for HttpErrno
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for HttpErrno
[src]

Formats the value using the given formatter. Read more