aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-08-13Fix the infinity timeout testsLoïc Hoguin
Make sure the test fails when the code is incorrect.
2018-08-13Move some test functions off to ct_helperLoïc Hoguin
2018-08-13Fix cancelling undefined settings timerBing Han
when settings_timeout is infinity
2018-08-13Update Erlang.mkLoïc Hoguin
2018-08-06Add missing log command to the commands() typeLoïc Hoguin
2018-08-06Remove an incorrect statement from the guideLoïc Hoguin
2018-07-09Add missing logger spec for cowboy_http2 optsLoïc Hoguin
2018-06-28Introduce undocumented option loggerLoïc Hoguin
This commit reworks the logging that Cowboy does via error_logger to make the module that will do the actual logging configurable. The logger module interface must be the same as logger and lager: a separate function per log level with the same log levels they support. The default behavior remains to call error_logger, although some messages were downgraded to warnings instead of errors. Since error_logger only supports three different log levels, some messages may get downgraded/upgraded depending on what the original log level was to make them compatible with error_logger. The {log, Level, Format, Args} command was also added to stream handlers. Stream handlers should use this command to log messages because it allows writing a stream handler to intercept some of those messages and extract information or block them as necessary. The logger option only applies to Cowboy itself, not to the messages Ranch logs, so more work remains to be done in that area.
2018-06-27Remove a stream handlers related todo not worth doingLoïc Hoguin
2018-06-27Make sure cowboy_stream_h calls subsequent stream handlersLoïc Hoguin
2018-06-27Disable warnings for erlang:get_stacktrace/0 in OTP-21+Loïc Hoguin
2018-06-27Use cowboy_req:stream_events in the eventsource exampleLoïc Hoguin
2018-06-27Add test cases for cowboy_req:stream_eventsLoïc Hoguin
2018-06-27Document cowboy_req:stream_events/3Loïc Hoguin
2018-06-26Add missing frame types to websocket_handle specs/docsLoïc Hoguin
Thanks Artem.
2018-06-26Fix tests for most recent GunLoïc Hoguin
2018-06-25Add an undocumented stream_events functionLoïc Hoguin
I will test it on a private project before settling on it.
2018-06-25Add streaming without chunking for HTTP/1.1Eric Meadows-Jönsson
If content-length is set in the response headers we can skip chunked transfer-encoding.
2018-06-11The TLS certificate can be accessed directlyLoïc Hoguin
2018-06-11Fix an example missing a " in the manualLoïc Hoguin
2018-06-08Fix some formatting issues in the manualLoïc Hoguin
2018-06-06Fix an incorrect section_title level in the manualLoïc Hoguin
2018-06-06Fix the cowboy_stream manual page nameLoïc Hoguin
2018-06-04Add a test for an empty host header in rfc7230Loïc Hoguin
2018-06-04Add a comment about push requiring a secure connectionLoïc Hoguin
2018-05-23Don't fail when copying erl_make_certsLoïc Hoguin
2018-05-22Update Erlang.mkLoïc Hoguin
Includes an experimental change to avoid deleting kerl unnecessarily and/or incorrectly.
2018-05-22Fix intermittent test failures in rfc7540_SUITELoïc Hoguin
2018-05-22Ensure tests in rfc7540_SUITE can be repeatedLoïc Hoguin
2018-05-20Fix intermittent failure of max_frame_size_sent testLoïc Hoguin
2018-05-20Update Erlang.mkLoïc Hoguin
2018-05-18Remove two broken absolute URI tests from old_http_SUITELoïc Hoguin
2018-05-18Remove the trailer header from HTTP/1.1 response if no TELoïc Hoguin
2018-05-18Don't send transfer-encoding when streaming 204 responsesLoïc Hoguin
2018-05-18Do not process HTTP/1.1 requests coming in after the lastLoïc Hoguin
2018-05-18Improve the limit_requests_keepalive testLoïc Hoguin
We now check that the connection gets closed.
2018-05-18Fix the ignore_requests_after_response_connection_close testLoïc Hoguin
It was not working at all.
2018-05-18Comment out the origin_form_reject_if_connect testLoïc Hoguin
We don't implement CONNECT yet so we unconditionally return a 501 for these requests and that makes this test fail.
2018-05-18Add more validation of absolute-form request targetsLoïc Hoguin
2018-05-18Remove more old_http_SUITE testsLoïc Hoguin
2018-05-17Remove the set_env test from old_http_SUITELoïc Hoguin
It duplicated a test in misc_SUITE. Also fix a couple issues in misc_SUITE including a test that was not being executed.
2018-05-17Remove the parse_host test from old_http_SUITELoïc Hoguin
It seems to just be a duplicate of something we now have in Cowlib.
2018-05-17Move a router test from old_http_SUITE to cowboy_routerLoïc Hoguin
2018-05-17Move timeout tests from old_http_SUITE to http_SUITELoïc Hoguin
Also fix the idle_timeout test which was producing an extra crash log.
2018-05-17Remove more tests from old_http_SUITE which exist elsewhereLoïc Hoguin
2018-05-17Remove/convert tests about request body from old_http_SUITELoïc Hoguin
2018-05-17Remove a broken test from loop_handler_SUITELoïc Hoguin
The feature was removed in Cowboy 2.0. An alternative to obtain the same behavior will be introduced as cowboy_req:read_body_async/1.
2018-05-17Speed up testing large static files, 32MB instead of 512MBLoïc Hoguin
2018-05-17Make examples_SUITE runs nearly twice fasterLoïc Hoguin
2018-05-16Add option linger_timeout to cowboy_httpLoïc Hoguin