giga::HttpClient Class Referencefinal
Public Member Functions | |
HttpClient (const HttpClient &)=delete | |
HttpClient (HttpClient &&)=delete | |
HttpClient & | operator= (const HttpClient &)=delete |
HttpClient & | operator= (HttpClient &&)=delete |
void | authenticate (const utility::string_t &login, const utility::string_t &password) |
web::uri_builder | uri (const utility::string_t &resource) |
template<typename T > | |
web::uri_builder | uri (const utility::string_t &resource, const T &id, const utility::string_t &subResource=U("")) const |
template<typename T , typename U > | |
web::uri_builder | uri (const utility::string_t &resource, const T &id, const utility::string_t &subResource, const U &subId) const |
template<typename T > | |
pplx::task< std::shared_ptr< T > > | request (const web::http::method &mtd, web::uri_builder uri) |
template<typename T , class U > | |
pplx::task< std::shared_ptr< T > > | request (const web::http::method &mtd, web::uri_builder uri, U &&bodyData) |
template<typename T > | |
std::shared_ptr< T > | onRequestPtr (web::http::http_response response) const |
template<typename T > | |
T | onRequest (web::http::http_response response) const |
void | throwHttpError (unsigned short status, web::json::value &&json) const |
pplx::task< void > | refreshToken () |
utility::string_t | accessToken () const |
void | setUserAgent (utility::string_t userAgent) |
Static Public Attributes | |
static constexpr auto | API = U("/api/1.0/") |
static constexpr auto | JSON_CONTENT_TYPE = U("application/json") |
The documentation for this class was generated from the following files:
- /home/thomas/code/GiGaSdk/src/giga/rest/HttpClient.h
- /home/thomas/code/GiGaSdk/src/giga/rest/HttpClient.cpp