Registry / http-client / cpprestsdk

cpprestsdk

JSON →
library2.10.19vcpkgunverified

C++11 JSON, REST, and OAuth library for cloud-based client-server communication

vcpkg install cpprestsdk
INSTALL
IMPORT
SIG · CPPRESTSDK
C
cpprestsdk
http-clientcppv2.10.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cpprest/http_client.h
#include <cpprest/http_client.h>

Make an HTTP GET request

#include <cpprest/http_client.h> #include <cpprest/filestream.h> int main() { web::http::client::http_client client(U("https://api.example.com")); client.request(web::http::methods::GET).then([](web::http::http_response response) { return response.extract_string(); }).then([](std::string body) { // process body }).wait(); return 0; }
Debug
Known issues
gotchacpprestsdk requires linking against Boost and OpenSSL on some platforms
fix
Ensure vcpkg installs dependencies automatically; on Linux, install libboost-dev libssl-dev
affects: all
Upgrade
Version history
2.10.19latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
Resources

No resource links recorded.

cpprestsdk — pip install cpprestsdk · libregistry