|
lintel 0.2.0
|
#include <Client.h>
HTTP client wrapper supporting SSL, authentication, and common HTTP methods
|
explicit |
| lintel::Client::~Client | ( | ) |
| httplib::Result lintel::Client::deletes | ( | std::string_view | path | ) | const |
Perform a DELETE request
| httplib::Result lintel::Client::deletes | ( | std::string_view | path, |
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a DELETE request with body
| httplib::Result lintel::Client::deletes | ( | std::string_view | path, |
| const httplib::Headers & | headers | ||
| ) | const |
Perform a DELETE request with headers
| httplib::Result lintel::Client::deletes | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a DELETE request with headers and body
| httplib::Result lintel::Client::deletes | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a DELETE request with headers and string body
| httplib::Result lintel::Client::deletes | ( | std::string_view | path, |
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a DELETE request with string body
| httplib::Result lintel::Client::get | ( | std::string_view | path | ) | const |
Perform a GET request
| httplib::Result lintel::Client::get | ( | std::string_view | path, |
| const httplib::Headers & | headers | ||
| ) | const |
Perform a GET request with headers
| httplib::Result lintel::Client::get | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| httplib::ContentReceiver | contentReceiver | ||
| ) | const |
Perform a GET request with headers and content receiver
| httplib::Result lintel::Client::get | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| httplib::ResponseHandler | responseHandler, | ||
| httplib::ContentReceiver | contentReceiver | ||
| ) | const |
Perform a GET request with headers, response handler, and content receiver
| httplib::Result lintel::Client::get | ( | std::string_view | path, |
| httplib::ContentReceiver | contentReceiver | ||
| ) | const |
Perform a GET request with a content receiver callback
| httplib::Result lintel::Client::get | ( | std::string_view | path, |
| httplib::ResponseHandler | responseHandler, | ||
| httplib::ContentReceiver | contentReceiver | ||
| ) | const |
Perform a GET request with response handler and content receiver
| httplib::Result lintel::Client::post | ( | std::string_view | path | ) | const |
Perform a POST request
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with body
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with headers and body
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const httplib::Params & | params | ||
| ) | const |
Perform a POST request with headers and form params
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with headers and string body
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| httplib::ContentProviderWithoutLength | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with headers and content provider without length
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| size_t | contentLength, | ||
| httplib::ContentProvider | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with headers and content provider
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const httplib::Params & | params | ||
| ) | const |
Perform a POST request with form params
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with string body
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| httplib::ContentProviderWithoutLength | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with content provider without length
| httplib::Result lintel::Client::post | ( | std::string_view | path, |
| size_t | contentLength, | ||
| httplib::ContentProvider | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a POST request with content provider
| httplib::Result lintel::Client::put | ( | std::string_view | path | ) | const |
Perform a PUT request
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with body
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const char * | body, | ||
| size_t | contentLength, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with headers and body
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const httplib::Params & | params | ||
| ) | const |
Perform a PUT request with headers and form params
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with headers and string body
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| httplib::ContentProviderWithoutLength | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with headers and content provider without length
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Headers & | headers, | ||
| size_t | contentLength, | ||
| httplib::ContentProvider | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with headers and content provider
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const httplib::Params & | params | ||
| ) | const |
Perform a PUT request with form params
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| const std::string & | body, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with string body
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| httplib::ContentProviderWithoutLength | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with content provider without length
| httplib::Result lintel::Client::put | ( | std::string_view | path, |
| size_t | contentLength, | ||
| httplib::ContentProvider | contentProvider, | ||
| const char * | contentType | ||
| ) | const |
Perform a PUT request with content provider
| void lintel::Client::setBasicAuth | ( | const std::string & | userName, |
| const std::string & | password | ||
| ) | const |
Set HTTP basic authentication header
Set HTTP Bearer token authentication header
| void lintel::Client::setDigestAuth | ( | const std::string & | userName, |
| const std::string & | password | ||
| ) | const |
Set HTTP digest authentication header