pub const HeadError = error HttpHeadersOversizeToo many bytes of HTTP headers.
The HTTP specification suggests to respond with a 431 status code before closing the connection.
HttpRequestTruncatedPartial HTTP request was received but the connection was closed before fully receiving the headers.
HttpConnectionClosingThe client sent 0 bytes of headers before closing the stream. This happens when a keep-alive connection is finally closed.
ReadFailedTransitive error occurred reading from in.
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385 pub const HeadError = error{
/// Too many bytes of HTTP headers.
///
/// The HTTP specification suggests to respond with a 431 status code
/// before closing the connection.
HttpHeadersOversize,
/// 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. This
/// happens when a keep-alive connection is finally closed.
HttpConnectionClosing,
/// Transitive error occurred reading from `in`.
ReadFailed,
}