13 #ifndef mitkRESTClient_h
14 #define mitkRESTClient_h
16 #include <MitkRESTExports.h>
17 #include <cpprest/http_client.h>
36 pplx::task<web::json::value>
Get(
const web::uri &uri,
const std::map<utility::string_t, utility::string_t> headers);
48 pplx::task<web::json::value>
Get(
const web::uri &uri,
49 const utility::string_t &filePath,
50 const std::map<utility::string_t, utility::string_t> headers);
61 pplx::task<web::json::value> Put(
const web::uri &uri,
const web::json::value *content);
73 pplx::task<web::json::value> Post(
const web::uri &uri,
74 const web::json::value *content,
75 const std::map<utility::string_t, utility::string_t> headers);
87 pplx::task<web::json::value> Post(
const web::uri &uri,
88 const std::vector<unsigned char> *content,
89 const std::map<utility::string_t, utility::string_t> headers);
96 http_request InitRequest(
const std::map<utility::string_t, utility::string_t> headers);
98 void CheckResponseContentType(web::http::http_response &response);
100 pplx::task<web::json::value> ExecutePost(
const web::uri &uri,
http_request request);
101 web::http::client::http_client_config m_ClientConfig;