union State [src]

Fields

readyThe stream is available to be used for the first time, or reused.
received_head
body_noneThe stream goes until the connection is closed.
body_remaining_content_length: u64
body_remaining_chunk_len: RemainingChunkLen
closingThe stream would be eligible for another HTTP request, however the client and server did not negotiate a persistent connection.

Source

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, }