10Duke Enterprise C++ Client
|
#include <HTTPRequest.h>
HTTP-request, which contains all necessary details to construct the request.
Public Member Functions | |
HTTPRequest (std::string method, std::string url, const std::multimap< std::string, std::string > &headers=std::multimap< std::string, std::string >(), std::shared_ptr< const tenduke::http::HTTPRequestAuthenticator > requestAuthenticator=nullptr, std::string messageBody="", long connectionTimeoutMs=DEFAULT_CONNECTION_TIMEOUT_MS, long timeoutMs=DEFAULT_TIMEOUT_MS) | |
Constructs new instance. | |
const std::string & | getMessageBody () const |
Returns the message body. | |
const std::string & | getMethod () const |
Returns the method. | |
const std::string & | getUrl () const |
Returns the URL. | |
const std::multimap< std::string, std::string > & | getHeaders () const |
Returns request headers. | |
const std::shared_ptr< const tenduke::http::HTTPRequestAuthenticator > & | getRequestAuthenticator () const |
Returns HTTP request authenticator. | |
long | getConnectionTimeoutMs () const |
Returns connection timeout in ms. | |
long | getTimeoutMs () const |
Returns time out in ms. | |
bool | hasBody () const |
Checks if request has body. | |
|
inline |
Constructs new instance.
method | - |
url | - |
headers | - |
requestAuthenticator | - |
messageBody | - |
connectionTimeoutMs | - |
timeoutMs | - |
|
inline |
Returns connection timeout in ms.
|
inline |
Returns request headers.
|
inline |
Returns the message body.
|
inline |
Returns the method.
|
inline |
Returns HTTP request authenticator.
|
inline |
Returns time out in ms.
|
inline |
Returns the URL.
|
inline |
Checks if request has body.