Error Set ReceiveHeadError [src]

Errors

HttpConnectionClosing

The client sent 0 bytes of headers before closing the stream. In other words, a keep-alive connection was finally closed.

HttpHeadersInvalid

Client sent headers that did not conform to the HTTP protocol.

HttpHeadersOversize

Client sent too many bytes of HTTP headers. The HTTP specification suggests to respond with a 431 status code before closing the connection.

HttpHeadersUnreadable

A low level I/O error occurred trying to read the headers.

HttpRequestTruncated

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

Source

pub const ReceiveHeadError = error{ /// Client sent too many bytes of HTTP headers. /// The HTTP specification suggests to respond with a 431 status code /// before closing the connection. HttpHeadersOversize, /// Client sent headers that did not conform to the HTTP protocol. HttpHeadersInvalid, /// A low level I/O error occurred trying to read the headers. HttpHeadersUnreadable, /// Partial HTTP request was received but the connection was closed before /// fully receiving the headers. HttpRequestTruncated, /// The client sent 0 bytes of headers before closing the stream. /// In other words, a keep-alive connection was finally closed. HttpConnectionClosing, }