Enum ratchet_rs::HttpError [−][src]
pub enum HttpError {
HttpMethod(Option<String>),
Redirected(String),
Status(StatusCode),
HttpVersion(Option<u8>),
MissingHeader(HeaderName),
InvalidHeader(HeaderName),
KeyMismatch,
MalformattedUri(Option<String>),
MalformattedHeader(String),
}
Expand description
HTTP errors.
Variants
HttpMethod(Option<String>)
An invalid HTTP method was received.
Redirected(String)
Tuple Fields
0: String
The server responded with a redirect.
Status(StatusCode)
Tuple Fields
0: StatusCode
The peer returned with a status code other than 101.
HttpVersion(Option<u8>)
An invalid HTTP version was received in a request.
MissingHeader(HeaderName)
Tuple Fields
0: HeaderName
A request or response was missing an expected header.
InvalidHeader(HeaderName)
Tuple Fields
0: HeaderName
A request or response contained an invalid header.
KeyMismatch
Sec-WebSocket-Key was invalid.
MalformattedUri(Option<String>)
The provided URI was malformatted
MalformattedHeader(String)
Tuple Fields
0: String
A provided header was malformatted
Trait Implementations
Performs the conversion.
Performs the conversion.