microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

async http client post/get request demo? #1787

Open bethebest0622 opened 5 months ago

bethebest0622 commented 5 months ago

Hi, sir or madam.

could you provide a demo for async get/post client request with a custom response handle function?

assume the request url is: https://api.coinex.com/v1/market/detail\?market\=BTCUSDT

the response is a json.

which i want to handle it with a callback function?