HttpResponseParser/http_response_parser.h
void free_parse_http_response(HttpResponse_t *h)
{
    if (h->body != NULL)
        free(h->body);
    
    free(h->headers->rawheaders);
    free(h->headers->status->reason_phrase);
    h->headers->status->status_code = 0;
    free(h->headers->status->http_version);
    free(h->headers->status->status_line);
    free(h->headers->status);
    free(h->headers);
}
////////////////////////////////////////////////////////
// Free memory of HttpResponse Headers and status
///////////////////////////////////////////////////////
Free memory of HttpResponse Headers and status
Free memory of HttpResponse Headers and status
void free_parse_http_response(HttpResponse_t *h)
{
    if (h->body != NULL)
        free(h->body);
    free(h->headers->rawheaders);
    free(h->headers->status->reason_phrase);
    h->headers->status->status_code = 0;
    free(h->headers->status->http_version);
    free(h->headers->status->status_line);
    free(h->headers->status);
    free(h->headers);
}
void free_parse_http_response ( HttpResponse_t * h ) { if ( h -> body != NULL ) free ( h -> body ) ; free ( h -> headers -> rawheaders ) ; free ( h -> headers -> status -> reason_phrase ) ; h -> headers -> status -> status_code = 0 ; free ( h -> headers -> status -> http_version ) ; free ( h -> headers -> status -> status_line ) ; free ( h -> headers -> status ) ; free ( h -> headers ) ; }
Free memory of HttpResponse Headers and status
Free memory of HttpResponse Headers and status