Stage of request parsing, tracking how much of the request has been read.
Declared in <httpserver.h>
enum class State : int;
| Name | Description |
|---|---|
Init | No data has been parsed yet. |
NeedsHeaders | The request line was parsed; headers are still pending. |
NeedsBody | Headers were parsed; the body is still pending. |
Complete | The full request has been parsed. |
Error | Parsing failed and the request is unreadable. |