Lines Matching refs:http

515 	struct evhttp *http = http_setup(&port, data->base, server_flags);  in http_basic_test_impl()  local
521 if (http_bind(http, &port2, server_flags) == -1) { in http_basic_test_impl()
586 evhttp_free(http); in http_basic_test_impl()
692 struct evhttp *http = http_setup(&port, data->base, 0); in http_bad_request_test() local
698 if (http_bind(http, &port2, 0) == -1) in http_bad_request_test()
760 evhttp_free(http); in http_bad_request_test()
814 struct evhttp *http = http_setup(&port, data->base, 0); in http_delete_test() local
819 tt_assert(http); in http_delete_test()
842 evhttp_free(http); in http_delete_test()
898 struct evhttp *http = http_setup(&port, data->base, 0); in http_on_complete_test() local
923 evhttp_free(http); in http_on_complete_test()
959 struct evhttp *http = http_setup(&port, data->base, 0); in http_allowed_methods_test() local
968 evhttp_set_allowed_methods(http, EVHTTP_REQ_PATCH); in http_allowed_methods_test()
1026 evhttp_free(http); in http_allowed_methods_test()
1067 struct evhttp *http; in http_connection_test_() local
1075 http = http_setup(&port, data->base, mask); in http_connection_test_()
1078 if (!http && ipv6) { in http_connection_test_()
1081 tt_assert(http); in http_connection_test_()
1166 if (http) in http_connection_test_()
1167 evhttp_free(http); in http_connection_test_()
1196 struct evhttp *http = http_setup(&port, data->base, 0); in http_connection_async_test() local
1273 if (http) in http_connection_async_test()
1274 evhttp_free(http); in http_connection_async_test()
1287 struct evhttp *http = http_setup(&port, data->base, 0); in http_autofree_connection_test() local
1325 tt_assert(TAILQ_FIRST(&http->connections) == NULL); in http_autofree_connection_test()
1330 if (http) in http_autofree_connection_test()
1331 evhttp_free(http); in http_autofree_connection_test()
1469 struct evhttp *http = http_setup(&port, data->base, 0); in http_cancel_test() local
1594 if (http) in http_cancel_test()
1595 evhttp_free(http); in http_cancel_test()
1672 struct evhttp *http = http_setup(&port, data->base, 0); in http_virtual_host_test() local
1678 evhttp_set_cb(second, "/funnybunny", http_basic_cb, http); in http_virtual_host_test()
1680 evhttp_set_cb(third, "/blackcoffee", http_basic_cb, http); in http_virtual_host_test()
1682 if (evhttp_add_virtual_host(http, "foo.com", second) == -1) { in http_virtual_host_test()
1686 if (evhttp_add_virtual_host(http, "bar.*.foo.com", third) == -1) { in http_virtual_host_test()
1816 if (http) in http_virtual_host_test()
1817 evhttp_free(http); in http_virtual_host_test()
1923 struct evhttp *http = http_setup(&port, data->base, 0); in http_dispatcher_test() local
1953 if (http) in http_dispatcher_test()
1954 evhttp_free(http); in http_dispatcher_test()
1972 struct evhttp *http = http_setup(&port, data->base, 0); in http_post_test() local
2020 evhttp_free(http); in http_post_test()
2111 struct evhttp *http = http_setup(&port, data->base, 0); in http_put_test() local
2136 evhttp_free(http); in http_put_test()
2236 struct evhttp *http = http_setup(&port, data->base, 0); in http_failure_test() local
2256 evhttp_free(http); in http_failure_test()
2326 struct evhttp *http = http_setup(&port, data->base, 0); in http_close_detection_() local
2331 evhttp_set_timeout_tv(http, &sec_tenth); in http_close_detection_()
2361 tt_assert(TAILQ_FIRST(&http->connections) == NULL); in http_close_detection_()
2366 if (http) in http_close_detection_()
2367 evhttp_free(http); in http_close_detection_()
3023 struct evhttp *http; in http_base_test() local
3028 http = http_setup(&port, base, 0); in http_base_test()
3052 evhttp_free(http); in http_base_test()
3110 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_incomplete_test_() local
3115 evhttp_set_timeout(http, 1); in http_incomplete_test_()
3145 evhttp_free(http); in http_incomplete_test_()
3329 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_chunk_out_test_impl() local
3392 if (http) in http_chunk_out_test_impl()
3393 evhttp_free(http); in http_chunk_out_test_impl()
3406 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_stream_out_test_impl() local
3438 if (http) in http_stream_out_test_impl()
3439 evhttp_free(http); in http_stream_out_test_impl()
3479 struct evhttp *http = http_setup(&port, data->base, 0); in http_stream_in_test_() local
3513 if (http) in http_stream_in_test_()
3514 evhttp_free(http); in http_stream_in_test_()
3551 struct evhttp *http = http_setup(&port, data->base, 0); in http_stream_in_cancel_test() local
3569 evhttp_free(http); in http_stream_in_cancel_test()
3603 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_connection_fail_test_impl() local
3609 evhttp_free(http); in http_connection_fail_test_impl()
3660 struct evhttp *http; member
3667 hs->http = http_setup(&hs->port, http_make_web_server_base, hs->ssl ? HTTP_BIND_SSL : 0); in http_make_web_server()
3678 struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_simple_test_impl() local
3705 if (http) in http_simple_test_impl()
3706 evhttp_free(http); in http_simple_test_impl()
3722 struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_connection_retry_test_basic() local
3728 evhttp_free(http); in http_connection_retry_test_basic()
3839 if (http) in http_connection_retry_test_basic()
3840 evhttp_free(hs.http); in http_connection_retry_test_basic()
3883 struct evhttp *http = NULL; in http_primitives() local
3894 http = evhttp_new(NULL); in http_primitives()
3895 tt_assert(http); in http_primitives()
3896 tt_int_op(evhttp_set_cb(http, "/test", http_basic_cb, http), ==, 0); in http_primitives()
3897 tt_int_op(evhttp_set_cb(http, "/test", http_basic_cb, http), ==, -1); in http_primitives()
3898 tt_int_op(evhttp_del_cb(http, "/test"), ==, 0); in http_primitives()
3899 tt_int_op(evhttp_del_cb(http, "/test"), ==, -1); in http_primitives()
3900 tt_int_op(evhttp_set_cb(http, "/test", http_basic_cb, http), ==, 0); in http_primitives()
3905 if (http) in http_primitives()
3906 evhttp_free(http); in http_primitives()
3917 struct evhttp *http = http_setup(&port, data->base, 0); in http_multi_line_header_test() local
3922 tt_ptr_op(http, !=, NULL); in http_multi_line_header_test()
3958 if (http) in http_multi_line_header_test()
3959 evhttp_free(http); in http_multi_line_header_test()
3981 struct evhttp *http = http_setup(&port, data->base, 0); in http_negative_content_length_test() local
4008 if (http) in http_negative_content_length_test()
4009 evhttp_free(http); in http_negative_content_length_test()
4049 struct evhttp *http = http_setup(&port, data->base, 0); in http_data_length_constraints_test_impl() local
4071 evhttp_set_max_headers_size(http, size - 1); in http_data_length_constraints_test_impl()
4094 evhttp_set_max_body_size(http, size - 2); in http_data_length_constraints_test_impl()
4146 if (http) in http_data_length_constraints_test_impl()
4147 evhttp_free(http); in http_data_length_constraints_test_impl()
4166 struct evhttp *http = http_setup(&port, data->base, 0); in http_lingering_close_test_impl() local
4171 tt_assert(!evhttp_set_flags(http, EVHTTP_SERVER_LINGERING_CLOSE)); in http_lingering_close_test_impl()
4172 evhttp_set_max_body_size(http, size / 2); in http_lingering_close_test_impl()
4204 if (http) in http_lingering_close_test_impl()
4205 evhttp_free(http); in http_lingering_close_test_impl()
4319 struct evhttp *http = http_setup(&port, data->base, 0); in http_terminate_chunked_test_impl() local
4323 evhttp_del_cb(http, "/test"); in http_terminate_chunked_test_impl()
4324 tt_assert(evhttp_set_cb(http, "/test", in http_terminate_chunked_test_impl()
4361 if (http) in http_terminate_chunked_test_impl()
4362 evhttp_free(http); in http_terminate_chunked_test_impl()
4442 struct evhttp *http = http_setup(&port, data->base, 0); in http_get_addr_test() local
4470 if (http) in http_get_addr_test()
4471 evhttp_free(http); in http_get_addr_test()
4511 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_write_during_read_test_impl() local
4537 if (http) in http_write_during_read_test_impl()
4538 evhttp_free(http); in http_write_during_read_test_impl()
4550 struct evhttp *http = http_setup(&port, data->base, 0); in http_request_own_test() local
4555 evhttp_free(http); in http_request_own_test()
4612 struct evhttp *http = in http_request_extra_body_test() local
4646 evhttp_free(http); in http_request_extra_body_test()