kvarn_utils::parse

Enum Error

source
pub enum Error {
    Http(Error),
    NoPath,
    UnexpectedEnd,
    HeaderTooLong,
    InvalidPath,
    InvalidMethod,
    InvalidVersion,
    InvalidStatusCode,
    Syntax,
    IllegalName,
    IllegalValue,
    NoHost,
}
Expand description

A general error from parsing.

Variants§

§

Http(Error)

Failed to create a [http] type.

This is often a Uri, Request, Method, or Version.

§

NoPath

No path was parsed as part of a Request

§

UnexpectedEnd

Done reading and processing

§

HeaderTooLong

The header is too long.

‘header’ is the data before \r\n\r\n, and may be invalid data not containing a \r\n\r\n

§

InvalidPath

The path (Uri) is invalid and could not be parsed

§

InvalidMethod