[#HTTPRequest]
= HTTPRequest
:mrdocs:

A single HTTP request being parsed from and replied to over a client connection&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class HTTPRequest;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:HTTPRequest/State.adoc[`State`] 
| Stage of request parsing, tracking how much of the request has been read&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:HTTPRequest/2constructor-05.adoc[`HTTPRequest`]         [.small]#[constructor]#
| Constructors
| xref:HTTPRequest/GetChunkProgress.adoc[`GetChunkProgress`] 
| Returns how many bytes of the current chunk have been read&period;
| xref:HTTPRequest/GetChunkSize.adoc[`GetChunkSize`] 
| Returns the size of the current chunk when using chunked transfer encoding&period;
| xref:HTTPRequest/GetClient.adoc[`GetClient`] 
| Returns the client connection this request arrived on&period;
| xref:HTTPRequest/GetHeader.adoc[`GetHeader`] 
| Look up a request header value&period;
| xref:HTTPRequest/GetPeer.adoc[`GetPeer`] 
| Returns the address of the peer that sent the request&period;
| xref:HTTPRequest/GetQueryParameter.adoc[`GetQueryParameter`] 
| Look up a query&hyphen;string parameter from the request target&period;
| xref:HTTPRequest/GetRequestMethod.adoc[`GetRequestMethod`] 
| Returns the HTTP method of the request&period;
| xref:HTTPRequest/GetState.adoc[`GetState`] 
| Returns the current parsing state of the request&period;
| xref:HTTPRequest/GetURI.adoc[`GetURI`] 
| Returns the request target (URI) of the request&period;
| xref:HTTPRequest/GetVersion.adoc[`GetVersion`] 
| Returns the HTTP protocol version of the request&period;
| xref:HTTPRequest/LoadBody.adoc[`LoadBody`] 
| Parse the request body from the receive buffer&period;
| xref:HTTPRequest/LoadControlData.adoc[`LoadControlData`] 
| Methods that attempt to parse HTTP request fields line&hyphen;by&hyphen;line from a receive buffer&period;
| xref:HTTPRequest/LoadHeaders.adoc[`LoadHeaders`] 
| Parse the request line&apos;s headers section from the receive buffer&period;
| xref:HTTPRequest/ReadBody.adoc[`ReadBody`] 
| Returns the request body read so far&period;
| xref:HTTPRequest/SetState.adoc[`SetState`] 
| Set the current parsing state of the request&period;
| xref:HTTPRequest/WriteHeader.adoc[`WriteHeader`] 
| Set a header to be included in the response&period;
| xref:HTTPRequest/WriteReply-06.adoc[`WriteReply`] 
| `WriteReply` overloads
|===



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