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

Method Post

src/engine/shared/http.h:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 void ExpectSha256(const SHA256_DIGEST &Sha256) { m_ExpectedSha256 = Sha256; }
182 void Head() { m_Type = REQUEST::HEAD; }
183 void Post(const unsigned char *pData, size_t DataLength)
184 {
185 m_Type = REQUEST::POST;
186 m_BodyLength = DataLength;
187 m_pBody = (unsigned char *)malloc(std::max((size_t)1, DataLength));
188 mem_copy(m_pBody, pData, DataLength);
189 }
190 void PostJson(const char *pJson)
191 {
192 m_Type = REQUEST::POST_JSON;

Callers 1

HttpPostFunction · 0.80

Calls 1

mem_copyFunction · 0.85

Tested by

no test coverage detected