enumstd.http.Server.State[src]

Fields

ready

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

receiving_head

An error occurred in receiveHead.

received_head

A Request object has been obtained and from there a Response can be opened.

receiving_body

The client is uploading something to this Server.

closing

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

Source Code

Source code
pub const State = enum {
    /// The connection is available to be used for the first time, or reused.
    ready,
    /// An error occurred in `receiveHead`.
    receiving_head,
    /// A Request object has been obtained and from there a Response can be
    /// opened.
    received_head,
    /// The client is uploading something to this Server.
    receiving_body,
    /// The connection is eligible for another HTTP request, however the client
    /// and server did not negotiate a persistent connection.
    closing,
}