1#ifndef TENDUKE_HTTP_SERVER_HTTPREQUEST_H
2#define TENDUKE_HTTP_SERVER_HTTPREQUEST_H
24 : socket(nullptr), method(), requestTarget(), httpVersion()
35 const std::shared_ptr<tenduke::osa::Socket> &socket,
37 std::string requestTarget,
38 std::string httpVersion
39 ) : socket(socket), method(std::move(method)), requestTarget(std::move(requestTarget)), httpVersion(std::move(httpVersion))
57 const std::shared_ptr<tenduke::osa::Socket> socket;
58 const std::string method;
59 const std::string requestTarget;
60 const std::string httpVersion;
HTTPRequest(const std::shared_ptr< tenduke::osa::Socket > &socket, std::string method, std::string requestTarget, std::string httpVersion)
Constructs new instance.
Definition HTTPRequest.h:34
std::string getMethod() const
Returns the request method.
Definition HTTPRequest.h:54
HTTPRequest()
No-arg constructs new empty instance.
Definition HTTPRequest.h:23
std::string getRequestTarget() const
Returns the "request target", i.e.
Definition HTTPRequest.h:48
Simple HTTP-server.
Definition AbstractHTTPServer.h:14
HTTP-related services.
Definition BadRequest.h:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4