0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00
cowboy/test
Loïc Hoguin fd9711d949
Rework and improve the decompress stream handler
The read buffer was changed into an iovec to avoid doing
too many binary concatenations and allocations.

Decompression happens transparently: when decoding gzip,
the content-encoding header is removed (we only decode
when "gzip" is the only encoding so nothing remains).

We always add a content_decoded key to the Req object.
This key contains a list of codings that were decoded,
in the reverse order in which they were. Currently it
can only be empty or contain <<"gzip">> but future
improvements or user handlers may see it contain more
values.

The option to disable decompression was renamed to
decompress_enabled and defaults to true.

It is no longer possible to enable/disable decompression
in the middle of reading the body: this ensures that the
data we pass forward is always valid.

Various smaller improvements were made to the code,
tests and manual pages.
2024-01-04 15:50:12 +01:00
..
handlers Rework and improve the decompress stream handler 2024-01-04 15:50:12 +01:00
static_handler_SUITE_data cowboy_static: Add support for files in EZ archives 2017-01-24 11:36:58 +01:00
ws_autobahn_SUITE_data Don't run long test suites by default 2018-11-20 13:23:59 +01:00
ws_SUITE_data Document the commands based Websocket interface 2019-10-06 16:51:27 +02:00
compress_SUITE.erl Ignore malformed accept-encoding headers in cowboy_compress_h 2019-12-31 13:48:05 +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 shutdown for HTTP/1.1 pipeline 2023-12-18 15:39:39 +01:00
decompress_SUITE.erl Rework and improve the decompress stream handler 2024-01-04 15:50:12 +01:00
examples_SUITE.erl Add UTF-8 support to example file_server 2023-12-07 15:31:11 +01:00
h2spec_SUITE.erl Fix h2spec "invalid preface sequence" test 2020-04-01 18:02:59 +02:00
http2_SUITE.erl Optionally reset the idle timeout when sending data 2023-12-21 14:03:07 +01:00
http_SUITE.erl Optionally reset the idle timeout when sending data 2023-12-21 14:03:07 +01:00
loop_handler_SUITE.erl Increase loop_handler_timeout timeouts 2023-12-15 16:22:06 +01:00
metrics_SUITE.erl Fix OTP-26+ warnings in test suites 2023-03-30 10:35:08 +02:00
misc_SUITE.erl Silence the expected set_env_missing error 2018-11-20 16:24:56 +01:00
plain_handler_SUITE.erl Move a old HTTP test cases to new plain_handler test suite 2018-11-21 14:29:36 +01:00
proxy_header_SUITE.erl Exit gracefully on {error,closed} when reading the PROXY header 2023-12-21 15:01:33 +01:00
req_SUITE.erl Reduce CT logs size in a couple test cases 2023-12-01 10:45:41 +01:00
rest_handler_SUITE.erl Fix typos in documentation 2023-12-06 18:46:56 +01:00
rfc6585_SUITE.erl Add a test suite for RFC6585 2018-11-03 20:57:51 +01:00
rfc7230_SUITE.erl Fix shutdown for HTTP/1.1 pipeline 2023-12-18 15:39:39 +01:00
rfc7231_SUITE.erl Explicitly close the socket in some tests for speed ups 2023-12-18 18:17:09 +01: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 Shave off a few more seconds from rfc7540_SUITE 2023-12-19 11:09:54 +01:00
rfc8297_SUITE.erl Add a test suite for RFC8297 2018-05-07 13:05:50 +02:00
rfc8441_SUITE.erl Fix and optimize sending of WINDOW_UPDATE frames 2019-09-05 14:07:38 +02:00
security_SUITE.erl Add 'max_cancel_stream_rate' config for the rapid reset attack 2023-12-06 12:41:58 +01:00
static_handler_SUITE.erl Fix static_handler suite code path 2023-12-15 10:35:37 +01:00
stream_handler_SUITE.erl Explicitly close the socket in some tests for speed ups 2023-12-18 18:17:09 +01:00
sys_SUITE.erl Add timeout to cowboy_loop 2023-12-15 15:37:34 +01:00
tracer_SUITE.erl Use init_per_suite instead of all/0 for init in tracer_SUITE 2023-12-01 15:46:23 +01:00
ws_autobahn_SUITE.erl Don't run long test suites by default 2018-11-20 13:23:59 +01:00
ws_handler_SUITE.erl Use gun:ws_send/3 in tests 2020-11-23 11:02:01 +01:00
ws_SUITE.erl Disable ws_SUITE:unlimited_connections on Windows 2020-04-02 17:36:03 +02:00