MCPcopy Create free account
hub / github.com/ddnet/ddnet / HttpPost

Function HttpPost

src/engine/shared/http.h:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280inline std::unique_ptr<CHttpRequest> HttpPost(const char *pUrl, const unsigned char *pData, size_t DataLength)
281{
282 auto pResult = std::make_unique<CHttpRequest>(pUrl);
283 pResult->Post(pData, DataLength);
284 pResult->Timeout(CTimeout{4000, 15000, 500, 5});
285 return pResult;
286}
287
288inline std::unique_ptr<CHttpRequest> HttpPostJson(const char *pUrl, const char *pJson)
289{

Callers 2

SendRegisterMethod · 0.85

Calls 2

PostMethod · 0.80
TimeoutMethod · 0.80

Tested by

no test coverage detected