#include <http.hpp>
Public Member Functions | |
| Request ()=default | |
| Request (Request &&other)=default | |
| Request & | operator= (Request &&other)=default |
| Request (const Request &other)=delete | |
| Request & | operator= (const Request &other)=delete |
| ~Request ()=default | |
| Request & | setMethod (const Method &method) |
| Sets the HTTP method of the request. | |
| Request & | setPath (URL path) |
| Sets the path of the request. | |
| const Method & | getMethod () const |
| Gets the HTTP method of the request. | |
| const URL & | getPath () const |
| Gets the path of the request. | |
Public Member Functions inherited from dcn::http::MessageBase | |
| MessageBase () | |
| MessageBase (MessageBase &&other)=default | |
| MessageBase & | operator= (MessageBase &&other)=default |
| MessageBase (const MessageBase &other)=delete | |
| MessageBase & | operator= (const MessageBase &other)=delete |
| virtual | ~MessageBase ()=default |
| MessageBase & | setVersion (const std::string &version) |
| Sets the HTTP version of the message. | |
| MessageBase & | setBody (const std::string &body) |
| Sets the body of the message. | |
| MessageBase & | setBodyWithContentLength (const std::string &body) |
| Sets the body of the message. | |
| MessageBase & | addHeader (Header header, const std::string &value) |
| Adds a header to the message. | |
| MessageBase & | setHeader (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 HeadersList & | getHeaders () const |
| Gets the headers of the message. | |
| const std::string & | getBody () const |
| Gets the body of the message. | |
|
default |
|
default |
|
default |
Gets the HTTP method of the request.
Gets the path of the request.
Sets the HTTP method of the request.
| [in] | method | The method to set. |
Sets the path of the request.
| [in] | path | The path to set. |