Http request received from a client. More...
#include <HttpServer.h>
Public Member Functions | |
bool | find (HttpParser::Result result, StringView &res) const |
Finds a specific HttpParser::Result in the list of parsed header. More... | |
const HttpParser & | getParser () const |
Gets the associated HttpParser. More... | |
StringView | getURL () const |
Gets the request URL. More... | |
Friends | |
struct | HttpServer |
Http request received from a client.
bool SC::HttpRequest::find | ( | HttpParser::Result | result, |
StringView & | res | ||
) | const |
Finds a specific HttpParser::Result in the list of parsed header.
result | The result to look for (Method, Url etc.) |
res | A StringView, pointing at headerBuffer containing the found result |
true
if the result has been found
|
inline |
Gets the associated HttpParser.
|
inline |
Gets the request URL.