Lines Matching refs:type
309 evhttp_method(enum evhttp_cmd_type type) in evhttp_method() argument
313 switch (type) { in evhttp_method()
361 req->type != EVHTTP_REQ_CONNECT && in evhttp_response_needs_body()
362 req->type != EVHTTP_REQ_HEAD); in evhttp_response_needs_body()
446 if (!(method = evhttp_method(req->type))) { in evhttp_make_header_request()
455 if ((req->type == EVHTTP_REQ_POST || req->type == EVHTTP_REQ_PUT) && in evhttp_make_header_request()
482 if (req->type == EVHTTP_REQ_CONNECT) in evhttp_is_request_connection_close()
1727 enum evhttp_cmd_type type; in evhttp_parse_request_line() local
1749 type = EVHTTP_REQ_UNKNOWN_; in evhttp_parse_request_line()
1770 type = EVHTTP_REQ_GET; in evhttp_parse_request_line()
1778 type = EVHTTP_REQ_PUT; in evhttp_parse_request_line()
1790 type = EVHTTP_REQ_POST; in evhttp_parse_request_line()
1795 type = EVHTTP_REQ_HEAD; in evhttp_parse_request_line()
1807 type = EVHTTP_REQ_PATCH; in evhttp_parse_request_line()
1812 type = EVHTTP_REQ_TRACE; in evhttp_parse_request_line()
1829 type = EVHTTP_REQ_DELETE; in evhttp_parse_request_line()
1839 type = EVHTTP_REQ_OPTIONS; in evhttp_parse_request_line()
1846 type = EVHTTP_REQ_CONNECT; in evhttp_parse_request_line()
1856 if ((int)type == EVHTTP_REQ_UNKNOWN_) { in evhttp_parse_request_line()
1863 req->type = type; in evhttp_parse_request_line()
1873 if (type == EVHTTP_REQ_CONNECT) { in evhttp_parse_request_line()
2194 evhttp_method_may_have_body(enum evhttp_cmd_type type) in evhttp_method_may_have_body() argument
2196 switch (type) { in evhttp_method_may_have_body()
2221 !evhttp_method_may_have_body(req->type)) { in evhttp_get_body()
2650 enum evhttp_cmd_type type, const char *uri) in evhttp_make_request() argument
2654 req->type = type; in evhttp_make_request()
3476 if (req->type == 0 || req->uri == NULL) { in evhttp_handle_request()
3481 if ((http->allowed_methods & req->type) == 0) { in evhttp_handle_request()
3483 (unsigned)req->type, (unsigned)http->allowed_methods)); in evhttp_handle_request()
4178 return (req->type); in evhttp_request_get_command()