[#HTTPRequest-State]
= xref:HTTPRequest.adoc[HTTPRequest]::State
:relfileprefix: ../
:mrdocs:

Stage of request parsing, tracking how much of the request has been read&period;

== Synopsis

Declared in `&lt;httpserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class State : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `Init` 
| No data has been parsed yet&period;
| `NeedsHeaders` 
| The request line was parsed&semi; headers are still pending&period;
| `NeedsBody` 
| Headers were parsed&semi; the body is still pending&period;
| `Complete` 
| The full request has been parsed&period;
| `Error` 
| Parsing failed and the request is unreadable&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
