A single HTTP request being parsed from and replied to over a client connection.
Synopsis
Declared in <httpserver.h>
class HTTPRequest;
Enums
Name |
Description |
Stage of request parsing, tracking how much of the request has been read. |
Member Functions
Name |
Description |
|
Constructors |
Returns how many bytes of the current chunk have been read. |
|
Returns the size of the current chunk when using chunked transfer encoding. |
|
Returns the client connection this request arrived on. |
|
Look up a request header value. |
|
Returns the address of the peer that sent the request. |
|
Look up a query‐string parameter from the request target. |
|
Returns the HTTP method of the request. |
|
Returns the current parsing state of the request. |
|
Returns the request target (URI) of the request. |
|
Returns the HTTP protocol version of the request. |
|
Parse the request body from the receive buffer. |
|
Methods that attempt to parse HTTP request fields line‐by‐line from a receive buffer. |
|
Parse the request line's headers section from the receive buffer. |
|
Returns the request body read so far. |
|
Set the current parsing state of the request. |
|
Set a header to be included in the response. |
|
|
Created with MrDocs