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

Function HttpClientState_Init

src/Http_Worker.c:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static void HttpClientState_Init(struct HttpClientState* state, struct HttpRequest* req) {
366 cc_string url = String_FromRawArray(req->url);
367 state->req = req;
368 state->retried = false;
369 state->redirects = 0;
370
371 HttpUrl_Parse(&url, &state->url);
372 HttpClientState_Reset(state);
373}
374
375
376static void HttpClient_Serialise(struct HttpClientState* state) {

Callers 1

HttpBackend_DoFunction · 0.85

Calls 2

HttpUrl_ParseFunction · 0.85
HttpClientState_ResetFunction · 0.85

Tested by

no test coverage detected