Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Constant

HeadError

Public Constant
std.http.Reader.HeadError
pub const HeadError = error

Errors

HttpHeadersOversize

Too many bytes of HTTP headers.

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

HttpRequestTruncated

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

HttpConnectionClosing

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

ReadFailed

Transitive error occurred reading from in.

File

http.zig:371
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,
    }