lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::Client Class Reference

#include <Client.h>

Public Member Functions

 Client (const std::shared_ptr< ClientConfiguration > &clientConfiguration)
 
 ~Client ()
 
void setBasicAuth (const std::string &userName, const std::string &password) const
 
void setDigestAuth (const std::string &userName, const std::string &password) const
 
void setBearerTokenAuth (const std::string &token) const
 
httplib::Result get (std::string_view path) const
 
httplib::Result get (std::string_view path, const httplib::Headers &headers) const
 
httplib::Result get (std::string_view path, httplib::ContentReceiver contentReceiver) const
 
httplib::Result get (std::string_view path, const httplib::Headers &headers, httplib::ContentReceiver contentReceiver) const
 
httplib::Result get (std::string_view path, httplib::ResponseHandler responseHandler, httplib::ContentReceiver contentReceiver) const
 
httplib::Result get (std::string_view path, const httplib::Headers &headers, httplib::ResponseHandler responseHandler, httplib::ContentReceiver contentReceiver) const
 
httplib::Result post (std::string_view path) const
 
httplib::Result post (std::string_view path, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result post (std::string_view path, const httplib::Headers &headers, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result post (std::string_view path, const std::string &body, const char *contentType) const
 
httplib::Result post (std::string_view path, const httplib::Headers &headers, const std::string &body, const char *contentType) const
 
httplib::Result post (std::string_view path, size_t contentLength, httplib::ContentProvider contentProvider, const char *contentType) const
 
httplib::Result post (std::string_view path, httplib::ContentProviderWithoutLength contentProvider, const char *contentType) const
 
httplib::Result post (std::string_view path, const httplib::Headers &headers, size_t contentLength, httplib::ContentProvider contentProvider, const char *contentType) const
 
httplib::Result post (std::string_view path, const httplib::Headers &headers, httplib::ContentProviderWithoutLength contentProvider, const char *contentType) const
 
httplib::Result post (std::string_view path, const httplib::Params &params) const
 
httplib::Result post (std::string_view path, const httplib::Headers &headers, const httplib::Params &params) const
 
httplib::Result put (std::string_view path) const
 
httplib::Result put (std::string_view path, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result put (std::string_view path, const httplib::Headers &headers, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result put (std::string_view path, const std::string &body, const char *contentType) const
 
httplib::Result put (std::string_view path, const httplib::Headers &headers, const std::string &body, const char *contentType) const
 
httplib::Result put (std::string_view path, size_t contentLength, httplib::ContentProvider contentProvider, const char *contentType) const
 
httplib::Result put (std::string_view path, httplib::ContentProviderWithoutLength contentProvider, const char *contentType) const
 
httplib::Result put (std::string_view path, const httplib::Headers &headers, size_t contentLength, httplib::ContentProvider contentProvider, const char *contentType) const
 
httplib::Result put (std::string_view path, const httplib::Headers &headers, httplib::ContentProviderWithoutLength contentProvider, const char *contentType) const
 
httplib::Result put (std::string_view path, const httplib::Params &params) const
 
httplib::Result put (std::string_view path, const httplib::Headers &headers, const httplib::Params &params) const
 
httplib::Result deletes (std::string_view path) const
 
httplib::Result deletes (std::string_view path, const httplib::Headers &headers) const
 
httplib::Result deletes (std::string_view path, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result deletes (std::string_view path, const httplib::Headers &headers, const char *body, size_t contentLength, const char *contentType) const
 
httplib::Result deletes (std::string_view path, const std::string &body, const char *contentType) const
 
httplib::Result deletes (std::string_view path, const httplib::Headers &headers, const std::string &body, const char *contentType) const
 

Detailed Description

HTTP client wrapper supporting SSL, authentication, and common HTTP methods

Constructor & Destructor Documentation

◆ Client()

lintel::Client::Client ( const std::shared_ptr< ClientConfiguration > &  clientConfiguration)
explicit

◆ ~Client()

lintel::Client::~Client ( )

Member Function Documentation

◆ deletes() [1/6]

httplib::Result lintel::Client::deletes ( std::string_view  path) const

Perform a DELETE request

◆ deletes() [2/6]

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

◆ deletes() [3/6]

httplib::Result lintel::Client::deletes ( std::string_view  path,
const httplib::Headers &  headers 
) const

Perform a DELETE request with headers

◆ deletes() [4/6]

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

◆ deletes() [5/6]

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

◆ deletes() [6/6]

httplib::Result lintel::Client::deletes ( std::string_view  path,
const std::string &  body,
const char *  contentType 
) const

Perform a DELETE request with string body

◆ get() [1/6]

httplib::Result lintel::Client::get ( std::string_view  path) const

Perform a GET request

◆ get() [2/6]

httplib::Result lintel::Client::get ( std::string_view  path,
const httplib::Headers &  headers 
) const

Perform a GET request with headers

◆ get() [3/6]

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

◆ get() [4/6]

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

◆ get() [5/6]

httplib::Result lintel::Client::get ( std::string_view  path,
httplib::ContentReceiver  contentReceiver 
) const

Perform a GET request with a content receiver callback

◆ get() [6/6]

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

◆ post() [1/11]

httplib::Result lintel::Client::post ( std::string_view  path) const

Perform a POST request

◆ post() [2/11]

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

◆ post() [3/11]

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

◆ post() [4/11]

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

◆ post() [5/11]

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

◆ post() [6/11]

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

◆ post() [7/11]

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

◆ post() [8/11]

httplib::Result lintel::Client::post ( std::string_view  path,
const httplib::Params &  params 
) const

Perform a POST request with form params

◆ post() [9/11]

httplib::Result lintel::Client::post ( std::string_view  path,
const std::string &  body,
const char *  contentType 
) const

Perform a POST request with string body

◆ post() [10/11]

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

◆ post() [11/11]

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

◆ put() [1/11]

httplib::Result lintel::Client::put ( std::string_view  path) const

Perform a PUT request

◆ put() [2/11]

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

◆ put() [3/11]

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

◆ put() [4/11]

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

◆ put() [5/11]

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

◆ put() [6/11]

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

◆ put() [7/11]

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

◆ put() [8/11]

httplib::Result lintel::Client::put ( std::string_view  path,
const httplib::Params &  params 
) const

Perform a PUT request with form params

◆ put() [9/11]

httplib::Result lintel::Client::put ( std::string_view  path,
const std::string &  body,
const char *  contentType 
) const

Perform a PUT request with string body

◆ put() [10/11]

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

◆ put() [11/11]

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

◆ setBasicAuth()

void lintel::Client::setBasicAuth ( const std::string &  userName,
const std::string &  password 
) const

Set HTTP basic authentication header

◆ setBearerTokenAuth()

void lintel::Client::setBearerTokenAuth ( const std::string &  token) const

Set HTTP Bearer token authentication header

◆ setDigestAuth()

void lintel::Client::setDigestAuth ( const std::string &  userName,
const std::string &  password 
) const

Set HTTP digest authentication header


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