0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test
Loïc Hoguin dd0fbab6b7
Add automatic ranged request handling for bytes units
Returning the atom auto instead of a callback informs Cowboy
that it needs to handle range requests automatically. This
changes the behavior so that the ProvideCallback function
is called and then Cowboy splits the data on its own and
sends the response without any other user involvement other
than defining the ranges_provided/2 callback.

This is a quick and dirty way to add range request support
to resources, and will be good enough for many cases including
for cowboy_static as it also works when the normal response
body is a sendfile tuple.
2018-11-11 13:57:26 +01:00
..
handlers Add automatic ranged request handling for bytes units 2018-11-11 13:57:26 +01:00
old_http_SUITE_data Always dialyze tests and fix some cowboy_req specs 2018-10-31 10:50:57 +01:00
static_handler_SUITE_data cowboy_static: Add support for files in EZ archives 2017-01-24 11:36:58 +01:00
ws_SUITE_data Add max_frame_size option for websocket handlers 2018-03-28 16:58:02 +02:00
compress_SUITE.erl Add sendfile support to cowboy_req:stream_body 2018-11-09 17:42:37 +01:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
cowboy_ct_hook.erl Welcome to 2017 2017-01-02 19:36:36 +01:00
cowboy_test.erl Fix how we require HTTP/1.0 from Gun in rfc7231_SUITE 2017-12-11 17:43:02 +01:00
examples_SUITE.erl Fix tests for most recent Gun 2018-06-26 10:32:33 +02:00
h2spec_SUITE.erl Run h2spec over TCP instead of TLS 2018-05-16 10:50:09 +02:00
http2_SUITE.erl Fix the infinity timeout tests 2018-08-13 11:10:49 +02:00
http_SUITE.erl Use gun:info instead of hacks for test socket operations 2018-09-26 17:17:25 +02:00
loop_handler_SUITE.erl Remove a broken test from loop_handler_SUITE 2018-05-17 13:39:35 +02:00
metrics_SUITE.erl Handle error_response command in cowboy_metrics_h 2018-10-31 15:13:23 +01:00
misc_SUITE.erl Remove the set_env test from old_http_SUITE 2018-05-17 21:04:40 +02:00
old_http_SUITE.erl Improve a few types, including cowboy_req:req() 2018-10-31 14:11:45 +01:00
proxy_header_SUITE.erl Fix a test listener not being stopped 2018-10-31 09:25:19 +01:00
req_SUITE.erl Add sendfile support to cowboy_req:stream_body 2018-11-09 17:42:37 +01:00
rest_handler_SUITE.erl Add automatic ranged request handling for bytes units 2018-11-11 13:57:26 +01:00
rfc6585_SUITE.erl Add a test suite for RFC6585 2018-11-03 20:57:51 +01:00
rfc7230_SUITE.erl Add a test for an empty host header in rfc7230 2018-06-04 14:33:24 +02:00
rfc7231_SUITE.erl Switch cowboy_http2 to the new cow_http2_machine 2018-10-26 10:23:28 +02:00
rfc7538_SUITE.erl Add a test suite for RFC7538; update Cowlib to 2.2.0 2018-03-05 16:48:56 +01:00
rfc7540_SUITE.erl Fix intermittent test failures in rfc7540_SUITE 2018-05-22 13:05:15 +02:00
rfc8297_SUITE.erl Add a test suite for RFC8297 2018-05-07 13:05:50 +02:00
rfc8441_SUITE.erl Rename the HTTP/2 Websocket test suite to rfc8441_SUITE 2018-09-21 16:12:19 +02:00
static_handler_SUITE.erl Add an option to disable sendfile for a listener 2018-11-03 18:55:40 +01:00
stream_handler_SUITE.erl Fix stream_handler_SUITE test failures due to compression 2018-09-23 14:10:04 +02:00
sys_SUITE.erl Fix the sys trap_exit tests 2018-10-28 17:11:52 +01:00
tracer_SUITE.erl Add nowarn_export_all to all test suites 2017-11-29 16:57:10 +01:00
ws_handler_SUITE.erl Add the {active, boolean()} Websocket command 2018-09-21 15:01:57 +02:00
ws_SUITE.erl Swap the ws and autobahn test groups to run autobahn last 2018-09-11 14:45:41 +02:00