Lines Matching refs:flags

129 	size_t hostlen, char *serv, size_t servlen, int flags)  in fake_getnameinfo()  argument
142 if (flags & NI_NUMERICHOST) { in fake_getnameinfo()
468 evhttp_is_connection_close(int flags, struct evkeyvalq* headers) in evhttp_is_connection_close() argument
470 if (flags & EVHTTP_PROXY_REQUEST) { in evhttp_is_connection_close()
486 evhttp_is_connection_close(req->flags, req->input_headers) || in evhttp_is_request_connection_close()
487 evhttp_is_connection_close(req->flags, req->output_headers); in evhttp_is_request_connection_close()
577 if (evhttp_is_connection_close(req->flags, req->input_headers)) { in evhttp_make_header_response()
579 if (!(req->flags & EVHTTP_PROXY_REQUEST)) in evhttp_make_header_response()
718 if (!(req->flags & EVHTTP_USER_OWNED)) in evhttp_request_free_auto()
747 if (evcon->flags & EVHTTP_CON_INCOMING) { in evhttp_connection_fail_()
786 if ((evcon->flags & EVHTTP_CON_OUTGOING) && in evhttp_connection_fail_()
787 (evcon->flags & EVHTTP_CON_AUTOFREE)) { in evhttp_connection_fail_()
827 int con_outgoing = evcon->flags & EVHTTP_CON_OUTGOING; in evhttp_connection_done()
857 } else if ((evcon->flags & EVHTTP_CON_AUTOFREE)) { in evhttp_connection_done()
982 req->flags |= EVHTTP_REQ_DEFER_FREE; in evhttp_handle_chunked_read()
986 req->flags &= ~EVHTTP_REQ_DEFER_FREE; in evhttp_handle_chunked_read()
987 if ((req->flags & EVHTTP_REQ_NEEDS_FREE) != 0) { in evhttp_handle_chunked_read()
1040 if (evcon->flags & EVHTTP_CON_LINGERING_CLOSE) in evhttp_lingering_fail()
1105 req->flags |= EVHTTP_REQ_DEFER_FREE; in evhttp_read_body()
1107 req->flags &= ~EVHTTP_REQ_DEFER_FREE; in evhttp_read_body()
1110 if ((req->flags & EVHTTP_REQ_NEEDS_FREE) != 0) { in evhttp_read_body()
1280 evcon->flags |= EVHTTP_CON_AUTOFREE; in evhttp_connection_free_on_completion()
1373 evcon->flags &= ~EVHTTP_CON_READING_ERROR; in evhttp_connection_reset_()
1381 evcon->flags |= EVHTTP_CON_CLOSEDETECT; in evhttp_connection_start_detectclose()
1388 evcon->flags &= ~EVHTTP_CON_CLOSEDETECT; in evhttp_connection_stop_detectclose()
1461 if (evcon->flags & EVHTTP_CON_READING_ERROR) { in evhttp_connection_read_on_write_error()
1462 evcon->flags &= ~EVHTTP_CON_READING_ERROR; in evhttp_connection_read_on_write_error()
1475 evcon->flags |= EVHTTP_CON_READING_ERROR; in evhttp_connection_read_on_write_error()
1521 if (evcon->flags & EVHTTP_CON_CLOSEDETECT) { in evhttp_error_cb()
1522 evcon->flags &= ~EVHTTP_CON_CLOSEDETECT; in evhttp_error_cb()
1537 && (evcon->flags & EVHTTP_CON_OUTGOING) in evhttp_error_cb()
1538 && (evcon->flags & EVHTTP_CON_AUTOFREE)) { in evhttp_error_cb()
1548 evcon->flags & EVHTTP_CON_READ_ON_WRITE_ERROR) { in evhttp_error_cb()
1554 evcon->flags & EVHTTP_CON_READ_ON_WRITE_ERROR && in evhttp_error_cb()
1893 req->flags |= EVHTTP_PROXY_REQUEST; in evhttp_parse_request_line()
2468 int flags) in evhttp_connection_set_flags() argument
2474 if (flags & ~avail_flags || flags > EVHTTP_CON_PUBLIC_FLAGS_END) in evhttp_connection_set_flags()
2476 evcon->flags &= ~avail_flags; in evhttp_connection_set_flags()
2478 evcon->flags |= flags; in evhttp_connection_set_flags()
2576 EVUTIL_ASSERT(!(evcon->flags & EVHTTP_CON_INCOMING)); in evhttp_connection_connect_()
2577 evcon->flags |= EVHTTP_CON_OUTGOING; in evhttp_connection_connect_()
2613 if (evcon->flags & EVHTTP_CON_REUSE_CONNECTED_ADDR && in evhttp_connection_connect_()
2671 EVUTIL_ASSERT(!(req->flags & EVHTTP_REQ_OWN_CONNECTION)); in evhttp_make_request()
2782 EVUTIL_ASSERT(req->flags & EVHTTP_REQ_OWN_CONNECTION); in evhttp_send_done()
3613 const int flags = in evhttp_accept_socket_with_handle() local
3617 flags, in evhttp_accept_socket_with_handle()
3869 int evhttp_set_flags(struct evhttp *http, int flags) in evhttp_set_flags() argument
3874 if (flags & ~avail_flags) in evhttp_set_flags()
3876 http->flags &= ~avail_flags; in evhttp_set_flags()
3878 http->flags |= flags; in evhttp_set_flags()
4035 if ((req->flags & EVHTTP_REQ_DEFER_FREE) != 0) { in evhttp_request_free()
4036 req->flags |= EVHTTP_REQ_NEEDS_FREE; in evhttp_request_free()
4069 req->flags |= EVHTTP_USER_OWNED; in evhttp_request_own()
4075 return (req->flags & EVHTTP_USER_OWNED) != 0; in evhttp_request_is_owned()
4262 if (http->flags & EVHTTP_SERVER_LINGERING_CLOSE) in evhttp_get_request_connection()
4263 evcon->flags |= EVHTTP_CON_LINGERING_CLOSE; in evhttp_get_request_connection()
4265 evcon->flags |= EVHTTP_CON_INCOMING; in evhttp_get_request_connection()
4301 req->flags |= EVHTTP_REQ_OWN_CONNECTION; in evhttp_associate_new_request_with_connection()
4481 unsigned flags; member
4501 evhttp_uri_set_flags(struct evhttp_uri *uri, unsigned flags) in evhttp_uri_set_flags() argument
4503 uri->flags = flags; in evhttp_uri_set_flags()
4711 end_of_path(char *cp, enum uri_part part, unsigned flags) in end_of_path() argument
4713 if (flags & EVHTTP_URI_NONCONFORMANT) { in end_of_path()
4771 evhttp_uri_parse_with_flags(const char *source_uri, unsigned flags) in evhttp_uri_parse_with_flags() argument
4783 uri->flags = flags; in evhttp_uri_parse_with_flags()
4829 readp = end_of_path(path, PART_PATH, flags); in evhttp_uri_parse_with_flags()
4836 readp = end_of_path(readp, PART_QUERY, flags); in evhttp_uri_parse_with_flags()
4843 readp = end_of_path(readp, PART_FRAGMENT, flags); in evhttp_uri_parse_with_flags()
4909 uri->flags = 0; in evhttp_uri_parse_authority()
5107 if (path && end_of_cpath(path, PART_PATH, uri->flags) != path+strlen(path)) in evhttp_uri_set_path()
5116 if (query && end_of_cpath(query, PART_QUERY, uri->flags) != query+strlen(query)) in evhttp_uri_set_query()
5124 if (fragment && end_of_cpath(fragment, PART_FRAGMENT, uri->flags) != fragment+strlen(fragment)) in evhttp_uri_set_fragment()