| 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 | { |