Home
last modified time | relevance | path

Searched refs:evhttp_add_header (Results 1 – 8 of 8) sorted by relevance

/external/libevent/sample/
Dhttp-connect.c83 evhttp_add_header(req->output_headers, "Connection", "close"); in connect_cb()
84 evhttp_add_header(req->output_headers, "Host", evhttp_uri_get_host(location)); in connect_cb()
118 evhttp_add_header(req->output_headers, "Connection", "keep-alive"); in main()
119 evhttp_add_header(req->output_headers, "Proxy-Connection", "keep-alive"); in main()
120 evhttp_add_header(req->output_headers, "Host", hostport); in main()
Dhttps-client.c472 evhttp_add_header(output_headers, "Host", host); in main()
473 evhttp_add_header(output_headers, "Connection", "close"); in main()
495 evhttp_add_header(output_headers, "Content-Length", buf); in main()
Dhttp-server.c307 evhttp_add_header(evhttp_request_get_output_headers(req), in send_document_cb()
324 evhttp_add_header(evhttp_request_get_output_headers(req), in send_document_cb()
/external/libevent/test/
Dregress_http.c370 evhttp_add_header(evhttp_request_get_output_headers(req), in http_basic_cb()
452 evhttp_add_header(evhttp_request_get_output_headers(req), "Content-Length", "39"); in http_chunked_cb()
623evhttp_add_header(evhttp_request_get_output_headers(req), "Content-Type", "text/xml; charset=UTF-8… in http_badreq_cb()
1114 evhttp_add_header(evhttp_request_get_output_headers(req), "Host", "somehost"); in http_connection_test_()
1132 evhttp_add_header(evhttp_request_get_output_headers(req), "Host", "somehost"); in http_connection_test_()
1139 evhttp_add_header(evhttp_request_get_output_headers(req), "Connection", "close"); in http_connection_test_()
1154 evhttp_add_header(evhttp_request_get_output_headers(req), "Empty", "itis"); in http_connection_test_()
1222 evhttp_add_header(evhttp_request_get_output_headers(req), "Host", "somehost"); in http_connection_async_test()
1240 evhttp_add_header(evhttp_request_get_output_headers(req), "Host", "somehost"); in http_connection_async_test()
1246 evhttp_add_header(evhttp_request_get_output_headers(req), "Connection", "close"); in http_connection_async_test()
[all …]
Dregress_rpc.c206 evhttp_add_header(req->output_headers, "Host", "somehost"); in rpc_basic_test()
279 evhttp_add_header(req->output_headers, "Host", "somehost"); in rpc_basic_message()
401 evhttp_add_header(req->input_headers, "X-Hook", hook_type); in rpc_hook_add_header()
403 evhttp_add_header(req->output_headers, "X-Hook", hook_type); in rpc_hook_add_header()
433 evhttp_add_header(req->input_headers, "X-Pool-Hook", "ran"); in rpc_hook_remove_header()
905 evhttp_add_header(req->output_headers, "Host", "somehost"); in rpc_invalid_type()
/external/libevent/
Dhttp.c460 evhttp_add_header(req->output_headers, "Content-Length", size); in evhttp_make_header_request()
506 evhttp_add_header(headers, "Date", date); in evhttp_maybe_add_date_header()
522 evhttp_add_header(headers, "Content-Length", len); in evhttp_maybe_add_content_length_header()
549 evhttp_add_header(req->output_headers, in evhttp_make_header_response()
570 evhttp_add_header(req->output_headers, in evhttp_make_header_response()
580 evhttp_add_header(req->output_headers, "Connection", "close"); in evhttp_make_header_response()
1969 evhttp_add_header(struct evkeyvalq *headers, in evhttp_add_header() function
2139 if (evhttp_add_header(headers, skey, svalue) == -1) in evhttp_parse_headers_()
2883 evhttp_add_header(req->output_headers, "Transfer-Encoding", in evhttp_send_reply_start()
3073 evhttp_add_header(req->output_headers, "Content-Type", "text/html"); in evhttp_send_page_()
[all …]
Devrpc.c486 evhttp_add_header(req->output_headers, in evrpc_request_done_closure()
/external/libevent/include/event2/
Dhttp.h887 int evhttp_add_header(struct evkeyvalq *headers, const char *key, const char *value);