| 353 | }; |
| 354 | |
| 355 | static 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 | |
| 365 | static void HttpClientState_Init(struct HttpClientState* state, struct HttpRequest* req) { |
| 366 | cc_string url = String_FromRawArray(req->url); |
no outgoing calls
no test coverage detected