Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
dcn::http::Request Class Reference

#include <http.hpp>

Inheritance diagram for dcn::http::Request:
dcn::http::MessageBase

Public Member Functions

 Request ()=default
 
 Request (Request &&other)=default
 
Requestoperator= (Request &&other)=default
 
 Request (const Request &other)=delete
 
Requestoperator= (const Request &other)=delete
 
 ~Request ()=default
 
RequestsetMethod (const Method &method)
 Sets the HTTP method of the request.
 
RequestsetPath (URL path)
 Sets the path of the request.
 
const MethodgetMethod () const
 Gets the HTTP method of the request.
 
const URLgetPath () const
 Gets the path of the request.
 
- Public Member Functions inherited from dcn::http::MessageBase
 MessageBase ()
 
 MessageBase (MessageBase &&other)=default
 
MessageBaseoperator= (MessageBase &&other)=default
 
 MessageBase (const MessageBase &other)=delete
 
MessageBaseoperator= (const MessageBase &other)=delete
 
virtual ~MessageBase ()=default
 
MessageBasesetVersion (const std::string &version)
 Sets the HTTP version of the message.
 
MessageBasesetBody (const std::string &body)
 Sets the body of the message.
 
MessageBasesetBodyWithContentLength (const std::string &body)
 Sets the body of the message.
 
MessageBaseaddHeader (Header header, const std::string &value)
 Adds a header to the message.
 
MessageBasesetHeader (Header header, const std::string &value)
 Set a header in the message.
 
std::vector< std::string > getHeader (Header header) const
 Gets the value of a header.
 
const std::string & getVersion () const
 Gets the version of the message.
 
const HeadersListgetHeaders () const
 Gets the headers of the message.
 
const std::string & getBody () const
 Gets the body of the message.
 

Constructor & Destructor Documentation

◆ Request() [1/3]

dcn::http::Request::Request ( )
default

◆ Request() [2/3]

dcn::http::Request::Request ( Request &&  other)
default

◆ Request() [3/3]

dcn::http::Request::Request ( const Request other)
delete

◆ ~Request()

dcn::http::Request::~Request ( )
default

Member Function Documentation

◆ getMethod()

const Method & dcn::http::Request::getMethod ( ) const

Gets the HTTP method of the request.

Returns
The method of the request.

◆ getPath()

const URL & dcn::http::Request::getPath ( ) const

Gets the path of the request.

Returns
The path of the request.

◆ operator=() [1/2]

Request & dcn::http::Request::operator= ( const Request other)
delete

◆ operator=() [2/2]

Request & dcn::http::Request::operator= ( Request &&  other)
default

◆ setMethod()

Request & dcn::http::Request::setMethod ( const Method method)

Sets the HTTP method of the request.

Parameters
[in]methodThe method to set.

◆ setPath()

Request & dcn::http::Request::setPath ( URL  path)

Sets the path of the request.

Parameters
[in]pathThe path to set.

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