| 399 | |
| 400 | |
| 401 | static cc_result HttpClient_SendRequest(struct HttpClientState* state) { |
| 402 | char inputBuffer[SEND_BUFFER_LEN]; |
| 403 | cc_string inputMsg; |
| 404 | |
| 405 | String_InitArray(inputMsg, inputBuffer); |
| 406 | state->req->meta = &inputMsg; |
| 407 | state->req->progress = HTTP_PROGRESS_FETCHING_DATA; |
| 408 | HttpClient_Serialise(state); |
| 409 | |
| 410 | return HttpConnection_Write(state->conn, (cc_uint8*)inputBuffer, inputMsg.length); |
| 411 | } |
| 412 | |
| 413 | |
| 414 | static void HttpClient_ParseHeader(struct HttpClientState* state, const cc_string* line) { |
no test coverage detected