Enum kvarn::application::Error
source · pub enum Error {
Parse(Error),
Io(Error),
H2(Error),
VersionNotSupported,
PushOnHttp1,
ClientRefusedResponse,
}
Expand description
General error for application-level logic.
Mostly, the Error::Parse
, Error::Io
, and Error::H2
signal errors with the request emitted from respective library.
Variants§
Parse(Error)
A parse error from the module parse
.
Io(Error)
An input-output error was encountered while reading or writing.
H2(Error)
Available on crate feature
http2
only.h2
emitted an error
VersionNotSupported
The HTTP version assumed by the client is not supported. Invalid ALPN config is a candidate.
PushOnHttp1
You tried to push a response on a HTTP/1 connection.
Use HTTP/2 instead, or check if the ResponsePipe
is HTTP/1.
ClientRefusedResponse
Client closed connection before the response could be sent.