Http request received from a client. More...
#include <HttpServer.h>
Public Member Functions | |
| bool | find (HttpParser::Token token, StringSpan &res) const |
| Finds a specific HttpParser::Result in the list of parsed header. | |
| const HttpParser & | getParser () const |
| Gets the associated HttpParser. | |
| StringSpan | getURL () const |
| Gets the request URL. | |
| void | reset () |
| Resets this object for it to be re-usable. | |
| Result | parse (const uint32_t maxHeaderSize, Span< const char > readData) |
| Parses an incoming slice of data (must be slice of availableHeader) | |
Friends | |
| struct | HttpServer |
| struct | HttpAsyncServer |
Http request received from a client.
|
nodiscard |
Finds a specific HttpParser::Result in the list of parsed header.
| token | The result to look for (Method, Url etc.) |
| res | A StringSpan, pointing at headerBuffer containing the found result |
true if the result has been found
|
inline |
Gets the associated HttpParser.
|
inline |
Gets the request URL.
Parses an incoming slice of data (must be slice of availableHeader)
| void SC::HttpRequest::reset | ( | ) |
Resets this object for it to be re-usable.