Namespaces | Classes | Typedefs | Enumerations | Functions
cpr Namespace Reference

Namespaces

 priv
 
 status
 
 util
 

Classes

class  Authentication
 
class  Body
 
struct  Buffer
 
struct  CaseInsensitiveCompare
 
class  ConnectTimeout
 
class  Cookies
 
struct  CurlHolder
 
class  Digest
 
class  Error
 
struct  File
 
class  LowSpeed
 
class  MaxRedirects
 
class  Multipart
 
struct  Pair
 
struct  Parameter
 
class  Parameters
 
struct  Part
 
class  Payload
 
class  Proxies
 
class  Response
 
class  Session
 
class  Timeout
 
class  UserAgent
 
class  Verbose
 
class  VerifySsl
 

Typedefs

using AsyncResponse = std::future< Response >
 
using Header = std::map< std::string, std::string, CaseInsensitiveCompare >
 
using Url = std::string
 

Enumerations

enum  ErrorCode {
  ErrorCode::OK = 0, ErrorCode::CONNECTION_FAILURE, ErrorCode::EMPTY_RESPONSE, ErrorCode::HOST_RESOLUTION_FAILURE,
  ErrorCode::INTERNAL_ERROR, ErrorCode::INVALID_URL_FORMAT, ErrorCode::NETWORK_RECEIVE_ERROR, ErrorCode::NETWORK_SEND_FAILURE,
  ErrorCode::OPERATION_TIMEDOUT, ErrorCode::PROXY_RESOLUTION_FAILURE, ErrorCode::SSL_CONNECT_ERROR, ErrorCode::SSL_LOCAL_CERTIFICATE_ERROR,
  ErrorCode::SSL_REMOTE_CERTIFICATE_ERROR, ErrorCode::SSL_CACERT_ERROR, ErrorCode::GENERIC_SSL_ERROR, ErrorCode::UNSUPPORTED_PROTOCOL,
  ErrorCode::UNKNOWN_ERROR = 1000
}
 

Functions

template<typename... Ts>
Response Delete (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse DeleteAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto DeleteCallback (Then then, Ts...ts) -> std::future< decltype(then(Delete(std::move(ts)...)))>
 
template<typename... Ts>
Response Get (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse GetAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto GetCallback (Then then, Ts...ts) -> std::future< decltype(then(Get(std::move(ts)...)))>
 
template<typename... Ts>
Response Head (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse HeadAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto HeadCallback (Then then, Ts...ts) -> std::future< decltype(then(Head(std::move(ts)...)))>
 
template<typename... Ts>
Response Options (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse OptionsAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto OptionsCallback (Then then, Ts...ts) -> std::future< decltype(then(Options(std::move(ts)...)))>
 
template<typename... Ts>
Response Patch (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse PatchAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto PatchCallback (Then then, Ts...ts) -> std::future< decltype(then(Patch(std::move(ts)...)))>
 
template<typename... Ts>
Response Post (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse PostAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto PostCallback (Then then, Ts...ts) -> std::future< decltype(then(Post(std::move(ts)...)))>
 
template<typename... Ts>
Response Put (Ts &&...ts)
 
template<typename... Ts>
AsyncResponse PutAsync (Ts...ts)
 
template<typename Then , typename... Ts>
auto PutCallback (Then then, Ts...ts) -> std::future< decltype(then(Put(std::move(ts)...)))>
 

Typedef Documentation

using cpr::AsyncResponse = typedef std::future<Response>

Definition at line 19 of file api.h.

using cpr::Header = typedef std::map<std::string, std::string, CaseInsensitiveCompare>

Definition at line 13 of file cprtypes.h.

using cpr::Url = typedef std::string

Definition at line 14 of file cprtypes.h.

Enumeration Type Documentation

enum cpr::ErrorCode
strong
Enumerator
OK 
CONNECTION_FAILURE 
EMPTY_RESPONSE 
HOST_RESOLUTION_FAILURE 
INTERNAL_ERROR 
INVALID_URL_FORMAT 
NETWORK_RECEIVE_ERROR 
NETWORK_SEND_FAILURE 
OPERATION_TIMEDOUT 
PROXY_RESOLUTION_FAILURE 
SSL_CONNECT_ERROR 
SSL_LOCAL_CERTIFICATE_ERROR 
SSL_REMOTE_CERTIFICATE_ERROR 
SSL_CACERT_ERROR 
GENERIC_SSL_ERROR 
UNSUPPORTED_PROTOCOL 
UNKNOWN_ERROR 

Definition at line 12 of file error.h.

Function Documentation

template<typename... Ts>
Response cpr::Delete ( Ts &&...  ts)

Definition at line 130 of file api.h.

template<typename... Ts>
AsyncResponse cpr::DeleteAsync ( Ts...  ts)

Definition at line 138 of file api.h.

template<typename Then , typename... Ts>
auto cpr::DeleteCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Delete(std::move(ts)...)))>

Definition at line 145 of file api.h.

template<typename... Ts>
Response cpr::Get ( Ts &&...  ts)

Definition at line 38 of file api.h.

template<typename... Ts>
AsyncResponse cpr::GetAsync ( Ts...  ts)

Definition at line 46 of file api.h.

template<typename Then , typename... Ts>
auto cpr::GetCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Get(std::move(ts)...)))>

Definition at line 53 of file api.h.

template<typename... Ts>
Response cpr::Head ( Ts &&...  ts)

Definition at line 107 of file api.h.

template<typename... Ts>
AsyncResponse cpr::HeadAsync ( Ts...  ts)

Definition at line 115 of file api.h.

template<typename Then , typename... Ts>
auto cpr::HeadCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Head(std::move(ts)...)))>

Definition at line 122 of file api.h.

template<typename... Ts>
Response cpr::Options ( Ts &&...  ts)

Definition at line 153 of file api.h.

template<typename... Ts>
AsyncResponse cpr::OptionsAsync ( Ts...  ts)

Definition at line 161 of file api.h.

template<typename Then , typename... Ts>
auto cpr::OptionsCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Options(std::move(ts)...)))>

Definition at line 168 of file api.h.

template<typename... Ts>
Response cpr::Patch ( Ts &&...  ts)

Definition at line 177 of file api.h.

template<typename... Ts>
AsyncResponse cpr::PatchAsync ( Ts...  ts)

Definition at line 185 of file api.h.

template<typename Then , typename... Ts>
auto cpr::PatchCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Patch(std::move(ts)...)))>

Definition at line 192 of file api.h.

template<typename... Ts>
Response cpr::Post ( Ts &&...  ts)

Definition at line 61 of file api.h.

template<typename... Ts>
AsyncResponse cpr::PostAsync ( Ts...  ts)

Definition at line 69 of file api.h.

template<typename Then , typename... Ts>
auto cpr::PostCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Post(std::move(ts)...)))>

Definition at line 76 of file api.h.

template<typename... Ts>
Response cpr::Put ( Ts &&...  ts)

Definition at line 84 of file api.h.

template<typename... Ts>
AsyncResponse cpr::PutAsync ( Ts...  ts)

Definition at line 92 of file api.h.

template<typename Then , typename... Ts>
auto cpr::PutCallback ( Then  then,
Ts...  ts 
) -> std::future<decltype(then(Put(std::move(ts)...)))>

Definition at line 99 of file api.h.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18