Enum hyper::HttpError [-] [+] [src]

pub enum HttpError {
    HttpMethodError,
    HttpUriError(ParseError),
    HttpVersionError,
    HttpHeaderError,
    HttpStatusError,
    HttpIoError(IoError),
}

A set of errors that can occur parsing HTTP streams.

Variants

HttpMethodError

An invalid Method, such as GE,T.

HttpUriError

An invalid RequestUri, such as exam ple.domain.

HttpVersionError

An invalid HttpVersion, such as HTP/1.1

HttpHeaderError

An invalid Header.

HttpStatusError

An invalid Status, such as 1337 ELITE.

HttpIoError

An IoError that occured while trying to read or write to a network stream.

Trait Implementations

impl Display for HttpError

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

impl Error for HttpError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl FromError<IoError> for HttpError

fn from_error(err: IoError) -> HttpError

impl FromError<ParseError> for HttpError

fn from_error(err: ParseError) -> HttpError

Derived Implementations

impl Clone for HttpError

fn clone(&self) -> HttpError

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

impl PartialEq for HttpError

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

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

impl Debug for HttpError

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