HttpResponseParser/http_response_parser.h
static int http_parse_response_status_http_version(HttpResponse_t *h,char *status_line)
{
    int i = 0;
    h->headers->status->http_version = malloc(sizeof(char) * 8);

    if (h->headers->status->http_version == NULL)
        return (0);
    

    for (i;status_line[i] != ' ';i++)
    {
        h->headers->status->http_version[i] = status_line[i];
    }

    h->headers->status->http_version[i] =  '\0';

    return (1);
}
////////////////////////////////////////////////////////
// function for parse http version in status line
///////////////////////////////////////////////////////
function for parse http version in status line
function for parse http version in status line
static int http_parse_response_status_http_version(HttpResponse_t *h,char *status_line)
{
    int i = 0;
    h->headers->status->http_version = malloc(sizeof(char) * 8);
    if (h->headers->status->http_version == NULL)
        return (0);
    for (i;status_line[i] != ' ';i++)
    {
        h->headers->status->http_version[i] = status_line[i];
    }
    h->headers->status->http_version[i] =  '\0';
    return (1);
}
static int http_parse_response_status_http_version ( HttpResponse_t * h , char * status_line ) { int i = 0 ; h -> headers -> status -> http_version = malloc ( sizeof ( char ) * 8 ) ; if ( h -> headers -> status -> http_version == NULL ) return ( 0 ) ; for ( i ; status_line [ i ] != ' ' ; i ++ ) { h -> headers -> status -> http_version [ i ] = status_line [ i ] ; } h -> headers -> status -> http_version [ i ] = ' \0 ' ; return ( 1 ) ; }
function for parse http version in status line
function for parse http version in status line