HttpResponseParser/http_response_parser.h
static int http_parse_response_status_reason_phrase(HttpResponse_t *h,char *request)
{
    int i = 13,x = 0;

    h->headers->status->reason_phrase = malloc(sizeof(char) * 32);

    if (h->headers->status->reason_phrase == NULL)
        return (0);
    
    for (i;request[i] != '\0';i++)
    {
        h->headers->status->reason_phrase[x] = request[i];
        x++;
    }

    h->headers->status->reason_phrase[x] = '\0';

    return (1);
}
////////////////////////////////////////////////////////
// function for parse status reason phrase in status line
///////////////////////////////////////////////////////
function for parse status reason phrase in status line
function for parse status reason phrase in status line
static int http_parse_response_status_reason_phrase(HttpResponse_t *h,char *request)
{
    int i = 13,x = 0;
    h->headers->status->reason_phrase = malloc(sizeof(char) * 32);
    if (h->headers->status->reason_phrase == NULL)
        return (0);
    for (i;request[i] != '\0';i++)
    {
        h->headers->status->reason_phrase[x] = request[i];
        x++;
    }
    h->headers->status->reason_phrase[x] = '\0';
    return (1);
}
static int http_parse_response_status_reason_phrase ( HttpResponse_t * h , char * request ) { int i = 13 , x = 0 ; h -> headers -> status -> reason_phrase = malloc ( sizeof ( char ) * 32 ) ; if ( h -> headers -> status -> reason_phrase == NULL ) return ( 0 ) ; for ( i ; request [ i ] != ' \0 ' ; i ++ ) { h -> headers -> status -> reason_phrase [ x ] = request [ i ] ; x ++ ; } h -> headers -> status -> reason_phrase [ x ] = ' \0 ' ; return ( 1 ) ; }
function for parse status reason phrase in status line
function for parse status reason phrase in status line