pub const State = union(enum) ready: readyThe stream is available to be used for the first time, or reused.
received_head: received_headbody_none: body_noneThe stream goes until the connection is closed.
body_remaining_content_length: u64body_remaining_chunk_len: RemainingChunkLenclosing: closingThe stream would be eligible for another HTTP request, however the client and server did not negotiate a persistent connection.
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,
}