10Duke Enterprise C++ Client
|
#include <HTTPRequest.h>
A HTTP-request parsed by HTTP server.
Public Member Functions | |
HTTPRequest () | |
No-arg constructs new empty instance. | |
HTTPRequest (const std::shared_ptr< tenduke::osa::Socket > &socket, std::string method, std::string requestTarget, std::string httpVersion) | |
Constructs new instance. | |
std::string | getRequestTarget () const |
Returns the "request target", i.e. | |
std::string | getMethod () const |
Returns the request method. | |
|
inline |
Constructs new instance.
socket | - |
method | - |
requestTarget | - |
httpVersion | - |
|
inline |
Returns the request method.
|
inline |
Returns the "request target", i.e.
path.
See https://datatracker.ietf.org/doc/html/rfc9112#name-request-line