| 363 | } |
| 364 | |
| 365 | static 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 | |
| 376 | static void HttpClient_Serialise(struct HttpClientState* state) { |
no test coverage detected