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 Display for HttpErrno

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Clone for HttpErrno

fn clone(&self) -> HttpErrno

fn clone_from(&mut self, source: &Self)

impl Copy for HttpErrno

impl Eq for HttpErrno

impl PartialEq for HttpErrno

fn eq(&self, __arg_0: &HttpErrno) -> bool

fn ne(&self, __arg_0: &HttpErrno) -> bool