10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::http::server::HTTPRequest Class Reference

#include <HTTPRequest.h>

Detailed Description

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.
 

Constructor & Destructor Documentation

◆ HTTPRequest()

tenduke::http::server::HTTPRequest::HTTPRequest ( const std::shared_ptr< tenduke::osa::Socket > &  socket,
std::string  method,
std::string  requestTarget,
std::string  httpVersion 
)
inline

Constructs new instance.

Parameters
socket-
method-
requestTarget-
httpVersion-

Member Function Documentation

◆ getMethod()

std::string tenduke::http::server::HTTPRequest::getMethod ( ) const
inline

Returns the request method.

Returns
-

◆ getRequestTarget()

std::string tenduke::http::server::HTTPRequest::getRequestTarget ( ) const
inline

Returns the "request target", i.e.

path.

See https://datatracker.ietf.org/doc/html/rfc9112#name-request-line

Returns
-

The documentation for this class was generated from the following file: