enum State [src]

Fields

readyThe connection is available to be used for the first time, or reused.
receiving_headAn error occurred in receiveHead.
received_headA Request object has been obtained and from there a Response can be opened.
receiving_bodyThe client is uploading something to this Server.
closingThe connection is eligible for another HTTP request, however the client and server did not negotiate a persistent connection.

Source

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