0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test/handlers
Loïc Hoguin f673e191b3
Add {set_options, #{metrics_user_data := Map}}
This allows giving custom metadata to the metrics stream handler.
This can be useful to for example provide the name of the
module handling the request which is only known after routing.
But any user data is allowed.

When called multiple times the user data maps are merged.
2019-10-02 15:23:23 +02:00
..
accept_callback_h.erl Move the final old HTTP suite tests and remove it 2018-11-22 00:12:18 +01:00
accept_callback_missing_h.erl Move many old HTTP test cases to the rest_handler test suite 2018-11-21 18:39:59 +01:00
asterisk_h.erl Properly handle OPTIONS * requests 2017-12-06 14:05:30 +01:00
charset_in_content_types_provided_h.erl Better handle content negotiation when accept contains charsets 2018-11-02 13:49:54 +01:00
charset_in_content_types_provided_implicit_h.erl Better handle content negotiation when accept contains charsets 2018-11-02 13:49:54 +01:00
charset_in_content_types_provided_implicit_no_callback_h.erl Better handle content negotiation when accept contains charsets 2018-11-02 13:49:54 +01:00
charsets_provided_empty_h.erl Add tests for charsets_provided 2018-11-02 13:54:19 +01:00
charsets_provided_h.erl Add tests for charsets_provided 2018-11-02 13:54:19 +01:00
compress_h.erl Add the set_options stream handler command 2018-11-15 18:53:42 +01:00
content_types_accepted_h.erl Move the final old HTTP suite tests and remove it 2018-11-22 00:12:18 +01:00
content_types_provided_h.erl Move many old HTTP test cases to the rest_handler test suite 2018-11-21 18:39:59 +01:00
crash_h.erl Handle error_response command in cowboy_metrics_h 2018-10-31 15:13:23 +01:00
custom_req_fields_h.erl Fix using custom fields in Req 2019-09-06 12:25:02 +02:00
default_h.erl Add a metrics test when the handler didn't send anything 2017-10-21 13:12:36 +01:00
delay_hello_h.erl Don't send the response immediately when using h2spec 2017-11-27 13:23:31 +01:00
delete_resource_h.erl Move the final old HTTP suite tests and remove it 2018-11-22 00:12:18 +01:00
echo_h.erl Add cowboy_req:read_and_match_urlencoded_body/2,3 2018-09-07 13:56:12 +02:00
expires_h.erl Move many old HTTP test cases to the rest_handler test suite 2018-11-21 18:39:59 +01:00
generate_etag_h.erl Move the final old HTTP suite tests and remove it 2018-11-22 00:12:18 +01:00
hello_h.erl Initial commit with connection/streams 2016-03-05 20:20:42 +01:00
if_range_h.erl Add support for range requests (RFC7233) in cowboy_rest 2018-11-07 18:55:06 +01:00
last_modified_h.erl Move many old HTTP test cases to the rest_handler test suite 2018-11-21 18:39:59 +01:00
long_polling_h.erl Fix broken tests in loop_handler_SUITE 2017-10-31 16:49:48 +00:00
long_polling_sys_h.erl Add initial support for system messages in cowboy_loop 2018-03-23 18:33:16 +01:00
loop_handler_abort_h.erl Data received after RST_STREAM counts toward window 2019-07-16 15:32:58 +02:00
loop_handler_body_h.erl Allow passing options to sub protocols 2017-02-18 18:26:20 +01:00
loop_handler_timeout_h.erl Add the idle_timeout HTTP/1.1 protocol option 2017-05-03 17:44:00 +02:00
multipart_h.erl Update the multipart reading interface 2016-08-10 15:09:04 +02:00
provide_callback_missing_h.erl Improve errors for when the ProvideCallback is missing 2018-08-13 17:23:48 +02:00
provide_range_callback_h.erl Add ProvideRangeCallback tests using sendfile 2018-11-11 16:09:28 +01:00
range_satisfiable_h.erl Add support for range requests (RFC7233) in cowboy_rest 2018-11-07 18:55:06 +01:00
ranges_provided_auto_h.erl Add automatic ranged request handling for bytes units 2018-11-11 13:57:26 +01:00
ranges_provided_h.erl Add support for range requests (RFC7233) in cowboy_rest 2018-11-07 18:55:06 +01:00
rate_limited_h.erl Add the rate_limited/2 REST callback 2018-11-04 11:58:59 +01:00
resp_h.erl Implement backpressure on cowboy_req:stream_body 2019-09-14 18:21:05 +02:00
resp_iolist_body_h.erl Always dialyze tests and fix some cowboy_req specs 2018-10-31 10:50:57 +01:00
rest_hello_h.erl Add a cowboy_rest test for malformed if-*-match headers 2018-10-31 22:41:59 +01:00
send_message_h.erl Add more tests to the rfc7230 suite 2017-11-24 00:16:19 +01:00
set_options_h.erl Add {set_options, #{metrics_user_data := Map}} 2019-10-02 15:23:23 +02:00
stop_handler_h.erl Add support for range requests (RFC7233) in cowboy_rest 2018-11-07 18:55:06 +01:00
stream_handler_h.erl Ensure unknown options are ignored in set_options command 2018-11-16 13:09:01 +01:00
switch_handler_h.erl Add support for range requests (RFC7233) in cowboy_rest 2018-11-07 18:55:06 +01:00
switch_protocol_flush_h.erl Always dialyze tests and fix some cowboy_req specs 2018-10-31 10:50:57 +01:00
ws_active_commands_h.erl Add the {deflate, boolean()} Websocket command 2018-11-13 15:55:09 +01:00
ws_deflate_commands_h.erl Add the {deflate, boolean()} Websocket command 2018-11-13 15:55:09 +01:00
ws_deflate_opts_h.erl Add deflate options for Websocket compression 2018-11-12 18:12:44 +01:00
ws_handle_commands_h.erl Add a commands-based interface to Websocket handlers 2018-09-11 14:33:58 +02:00
ws_info_commands_h.erl Add a commands-based interface to Websocket handlers 2018-09-11 14:33:58 +02:00
ws_init_commands_h.erl Add a commands-based interface to Websocket handlers 2018-09-11 14:33:58 +02:00
ws_init_h.erl Allow websocket_init/1 to reply/close/hibernate 2016-08-15 19:21:38 +02:00
ws_set_options_commands_h.erl Add the set_options Websocket command 2018-11-16 13:49:00 +01:00
ws_terminate_h.erl Always dialyze tests and fix some cowboy_req specs 2018-10-31 10:50:57 +01:00