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

Function HttpClientState_Reset

src/Http_Worker.c:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353};
354
355static void HttpClientState_Reset(struct HttpClientState* state) {
356 state->state = HTTP_RESPONSE_STATE_INITIAL;
357 state->chunked = false;
358 state->dataLeft = 0;
359 state->autoClose = false;
360
361 String_InitArray(state->header, state->_headerBuffer);
362 String_InitArray(state->location, state->_locationBuffer);
363}
364
365static void HttpClientState_Init(struct HttpClientState* state, struct HttpRequest* req) {
366 cc_string url = String_FromRawArray(req->url);

Callers 2

HttpClientState_InitFunction · 0.85
HttpBackend_DoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected