Lines Matching refs:line
1682 evhttp_parse_response_line(struct evhttp_request *req, char *line) in evhttp_parse_response_line() argument
1688 protocol = strsep(&line, " "); in evhttp_parse_response_line()
1689 if (line == NULL) in evhttp_parse_response_line()
1691 number = strsep(&line, " "); in evhttp_parse_response_line()
1692 if (line != NULL) in evhttp_parse_response_line()
1693 readable = line; in evhttp_parse_response_line()
1718 evhttp_parse_request_line(struct evhttp_request *req, char *line, size_t len) in evhttp_parse_request_line() argument
1720 char *eos = line + len; in evhttp_parse_request_line()
1729 while (eos > line && *(eos-1) == ' ') { in evhttp_parse_request_line()
1738 method = strsep(&line, " "); in evhttp_parse_request_line()
1739 if (!line) in evhttp_parse_request_line()
1741 uri = line; in evhttp_parse_request_line()
2027 char *line; in evhttp_parse_firstline_() local
2032 line = evbuffer_readln(buffer, &len, EVBUFFER_EOL_CRLF); in evhttp_parse_firstline_()
2033 if (line == NULL) { in evhttp_parse_firstline_()
2042 mm_free(line); in evhttp_parse_firstline_()
2050 if (evhttp_parse_request_line(req, line, len) == -1) in evhttp_parse_firstline_()
2054 if (evhttp_parse_response_line(req, line) == -1) in evhttp_parse_firstline_()
2061 mm_free(line); in evhttp_parse_firstline_()
2066 evhttp_append_to_last_header(struct evkeyvalq *headers, char *line) in evhttp_append_to_last_header() argument
2078 while (*line == ' ' || *line == '\t') in evhttp_append_to_last_header()
2079 ++line; in evhttp_append_to_last_header()
2080 evutil_rtrim_lws_(line); in evhttp_append_to_last_header()
2082 line_len = strlen(line); in evhttp_append_to_last_header()
2089 memcpy(newval + old_len + 1, line, line_len + 1); in evhttp_append_to_last_header()
2099 char *line; in evhttp_parse_headers_() local
2104 while ((line = evbuffer_readln(buffer, &len, EVBUFFER_EOL_CRLF)) in evhttp_parse_headers_()
2116 if (*line == '\0') { /* Last header - Done */ in evhttp_parse_headers_()
2118 mm_free(line); in evhttp_parse_headers_()
2123 if (*line == ' ' || *line == '\t') { in evhttp_parse_headers_()
2124 if (evhttp_append_to_last_header(headers, line) == -1) in evhttp_parse_headers_()
2126 mm_free(line); in evhttp_parse_headers_()
2131 svalue = line; in evhttp_parse_headers_()
2142 mm_free(line); in evhttp_parse_headers_()
2154 mm_free(line); in evhttp_parse_headers_()
3257 char *line=NULL; in evhttp_parse_query_impl() local
3281 if ((line = mm_strdup(query_part)) == NULL) { in evhttp_parse_query_impl()
3286 p = argument = line; in evhttp_parse_query_impl()
3316 if (line) in evhttp_parse_query_impl()
3317 mm_free(line); in evhttp_parse_query_impl()