Skip to content

Instantly share code, notes, and snippets.

View TheSillyDoggo's full-sized avatar

TheSillyDoggo

View GitHub Profile
@TheSillyDoggo
TheSillyDoggo / main.cpp
Created March 1, 2024 08:07
concurrent http
void myCCHttpClientSend(CCHttpClient* tis, cocos2d::extension::CCHttpRequest* req) {
//cocos2d::extension::CCHttpClient::send(req);
log::info("url: {}", req->getUrl());
log::info("request body: {}\ntag: {}\nuser data: {}", req->getRequestData(), req->getTag(), req->getUserData());
req->retain();
auto r = web::AsyncWebRequest();
r.bodyRaw(req->getRequestData());