Error Set FetchError [src]
Errors
The client sent 0 bytes of headers before closing the stream. This happens when a keep-alive connection is finally closed.
Server sent headers that did not conform to the HTTP protocol.
To find out more detailed diagnostics, http.Reader.head_buffer can be
passed directly to Request.Head.parse.
Too many bytes of HTTP headers.
The HTTP specification suggests to respond with a 431 status code before closing the connection.
Partial HTTP request was received but the connection was closed before fully receiving the headers.
Transitive error occurred reading from in.
This can be avoided by calling receiveHead before sending the
request body.
Sending the request failed. Error code can be found on the
Connection object.
Source
pub const FetchError = Uri.ParseError || RequestError || Request.ReceiveHeadError || error{
StreamTooLong,
/// TODO provide optional diagnostics when this occurs or break into more error codes
WriteFailed,
UnsupportedCompressionMethod,
}