[−][src]Module aahc::error
Errors that originate inside aahc
or httparse
.
aahc
API functions report three kinds of errors: errors passed up from the underlying socket,
errors caused by the server sending an invalid or unsupported HTTP response, and errors caused
by the server closing its socket prematurely (before the entire response is transferred).
aahc
API functions always report errors in the form of std::io::Error
. Errors passed up
from the underlying socket pass through aahc
completely unmodified. Errors caused by the
server closing its socket prematurely are reported as std::io::ErrorKind::UnexpectedEof
.
Errors caused by the server sending an invalid or unsupported HTTP response are reported as
std::io::ErrorKind::InvalidData
; if the detailed-errors
feature is enabled, then the
inner error of the std::io::Error
is an InvalidData
instance, otherwise there is no
source and this module is not exported.
Enums
BadChunkHeader | The ways in which a chunk header can be invalid. |
BadContentLength | The ways in which a received |
InvalidData | The type of nested error included in any error of kind
|