MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / HttpClient_SendRequest

Function HttpClient_SendRequest

src/Http_Worker.c:401–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399
400
401static 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
414static void HttpClient_ParseHeader(struct HttpClientState* state, const cc_string* line) {

Callers 1

Calls 2

HttpClient_SerialiseFunction · 0.85
HttpConnection_WriteFunction · 0.85

Tested by

no test coverage detected