MCPcopy Create free account
hub / github.com/defold/defold / HttpWrite

Method HttpWrite

engine/dlib/src/test/test_httpclient.cpp:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 static dmHttpClient::Result HttpWrite(dmHttpClient::HResponse response, uint32_t offset, uint32_t length, void* user_data)
116 {
117 dmHttpClientTest* self = (dmHttpClientTest*) user_data;
118 const char* s = self->m_ToPost.c_str();
119 uint32_t len = dmMath::Min((uint32_t)self->m_ToPost.size() - offset, length);
120 return dmHttpClient::Write(response, &s[offset], len);
121 }
122
123 static dmHttpClient::Result HttpWriteHeaders(dmHttpClient::HResponse response, void* user_data)
124 {

Callers

nothing calls this directly

Calls 3

MinFunction · 0.85
WriteFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected