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 Union

State

Public Union
std.http.Reader.State
pub const State = union(enum)

Fields

ready: ready

The stream is available to be used for the first time, or reused.

received_head: received_head
body_none: body_none

The stream goes until the connection is closed.

body_remaining_content_length: u64
body_remaining_chunk_len: RemainingChunkLen
closing: closing

The stream would be eligible for another HTTP request, however the client and server did not negotiate a persistent connection.

File

http.zig:352
352
353
354
355
356
357
358
359
360
361
362
363
    pub const State = union(enum) {
        /// The stream is available to be used for the first time, or reused.
        ready,
        received_head,
        /// The stream goes until the connection is closed.
        body_none,
        body_remaining_content_length: u64,
        body_remaining_chunk_len: RemainingChunkLen,
        /// The stream would be eligible for another HTTP request, however the
        /// client and server did not negotiate a persistent connection.
        closing,
    }