HTTP-request, which contains all necessary details to construct the request.
|
| 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.
|
|