Error Set ReceiveHeadError [src]

Errors

CertificateBundleLoadFailure RequestError
ConnectionRefused ConnectTcpError
ConnectionResetByPeer ConnectTcpError
ConnectionTimedOut ConnectTcpError
HostLacksNetworkAddresses ConnectTcpError
HttpChunkInvalid
HttpChunkTruncated
HttpConnectionClosing HeadError

The client sent 0 bytes of headers before closing the stream. This happens when a keep-alive connection is finally closed.

HttpContentEncodingUnsupported
HttpHeadersInvalid

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.

HttpHeadersOversize HeadError

Too many bytes of HTTP headers.

The HTTP specification suggests to respond with a 431 status code before closing the connection.

HttpRedirectLocationInvalid
HttpRedirectLocationMissing
HttpRedirectLocationOversize
HttpRequestTruncated HeadError

Partial HTTP request was received but the connection was closed before fully receiving the headers.

NameServerFailure ConnectTcpError
NetworkUnreachable ConnectTcpError
OutOfMemory Error
ReadFailed HeadError

Transitive error occurred reading from in.

RedirectRequiresResend

This can be avoided by calling receiveHead before sending the request body.

TemporaryNameServerFailure ConnectTcpError
TlsInitializationFailed ConnectTcpError
TooManyHttpRedirects
UnexpectedConnectFailure ConnectTcpError
UnknownHostName ConnectTcpError
UnsupportedUriScheme RequestError
UriHostTooLong RequestError
UriMissingHost RequestError
WriteFailed

Sending the request failed. Error code can be found on the Connection object.

Source

pub const ReceiveHeadError = http.Reader.HeadError || ConnectError || error{ /// 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`. HttpHeadersInvalid, TooManyHttpRedirects, /// This can be avoided by calling `receiveHead` before sending the /// request body. RedirectRequiresResend, HttpRedirectLocationMissing, HttpRedirectLocationOversize, HttpRedirectLocationInvalid, HttpContentEncodingUnsupported, HttpChunkInvalid, HttpChunkTruncated, HttpHeadersOversize, UnsupportedUriScheme, /// Sending the request failed. Error code can be found on the /// `Connection` object. WriteFailed, }