Lines Matching refs:resp
4365 struct http_resp *resp; in Curl_http_resp_make() local
4368 resp = calloc(1, sizeof(*resp)); in Curl_http_resp_make()
4369 if(!resp) in Curl_http_resp_make()
4372 resp->status = status; in Curl_http_resp_make()
4374 resp->description = strdup(description); in Curl_http_resp_make()
4375 if(!resp->description) in Curl_http_resp_make()
4378 Curl_dynhds_init(&resp->headers, 0, DYN_HTTP_REQUEST); in Curl_http_resp_make()
4379 Curl_dynhds_init(&resp->trailers, 0, DYN_HTTP_REQUEST); in Curl_http_resp_make()
4383 if(result && resp) in Curl_http_resp_make()
4384 Curl_http_resp_free(resp); in Curl_http_resp_make()
4385 *presp = result ? NULL : resp; in Curl_http_resp_make()
4389 void Curl_http_resp_free(struct http_resp *resp) in Curl_http_resp_free() argument
4391 if(resp) { in Curl_http_resp_free()
4392 free(resp->description); in Curl_http_resp_free()
4393 Curl_dynhds_free(&resp->headers); in Curl_http_resp_free()
4394 Curl_dynhds_free(&resp->trailers); in Curl_http_resp_free()
4395 if(resp->prev) in Curl_http_resp_free()
4396 Curl_http_resp_free(resp->prev); in Curl_http_resp_free()
4397 free(resp); in Curl_http_resp_free()