aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2018-11-22Improve the reliability of some http_SUITE testsLoïc Hoguin
2018-11-22Fix compress buffering tests before OTP 20.1Loïc Hoguin
2018-11-22Move the final old HTTP suite tests and remove itLoïc Hoguin
2018-11-21Move many old HTTP test cases to the rest_handler test suiteLoïc Hoguin
A bug was fixed in cowboy_rest where when content_types_provided returned a media type with a wildcard as first in the list, and a request comes in without an accept header, then the media_type value in the Req object would contain '*' instead of [] for the parameters.
2018-11-21Move a old HTTP test cases to new plain_handler test suiteLoïc Hoguin
2018-11-21Rename sec_SUITE to security_SUITELoïc Hoguin
2018-11-21Move one more old HTTP test caseLoïc Hoguin
2018-11-21Move some more tests out of the old HTTP test suiteLoïc Hoguin
2018-11-21Create a security test suite based on old HTTP test casesLoïc Hoguin
2018-11-21Move another test from the old HTTP test suiteLoïc Hoguin
2018-11-21Move some tests out of the old HTTP test suiteLoïc Hoguin
And additional minor tweaks.
2018-11-20Move HTTP/1.0 tests from the old test suite to rfc7230Loïc Hoguin
2018-11-20Silence expected warnings for messages from unknown processesLoïc Hoguin
2018-11-20Silence the expected set_env_missing errorLoïc Hoguin
2018-11-20Increase a few more timeouts to reduce intermittent failuresLoïc Hoguin
2018-11-20Fix the request_timeout_infinity testLoïc Hoguin
Wrong option was being tested.
2018-11-20Don't run long test suites by defaultLoïc Hoguin
The examples test suite is only useful once in a while in order to know whether examples were broken, for example before issuing a release. The new ws_autobahn test suite isolates the autobahn test suite so that it can be ignored by default. It's only useful to run it when working on the Websocket code or before issuing a release.
2018-11-20Handle a test case sometimes sending a response too fastLoïc Hoguin
2018-11-20Wait for the connection to be up in a few testsLoïc Hoguin
2018-11-20Increase a test timeout to get rid of intermittent failuresLoïc Hoguin
2018-11-19Fix case insensitive filesystems in static_handler test suiteLoïc Hoguin
2018-11-19Silence expected errors from the stream_handler test suite2.6.0Loïc Hoguin
2018-11-19Add an additional test to the static test suiteLoïc Hoguin
2018-11-19Silence expected errors from the static_handler test suiteLoïc Hoguin
2018-11-19Use try..after in tests that start their own listenersLoïc Hoguin
2018-11-19Use ?FUNCTION_NAME instead of ct_helper:name()Loïc Hoguin
Cowboy is 19+ so it's OK to use it.
2018-11-18Add the chunked option for HTTP/1.1Loïc Hoguin
It allows disabling the chunked transfer-encoding. It can also be disabled on a per-request basis, although it will be ignored for responses that are not streamed.
2018-11-16Add the idle_timeout option to HTTP/2Loïc Hoguin
2018-11-16Add the set_options Websocket commandLoïc Hoguin
It allows overriding the idle_timeout option only for now.
2018-11-16Ensure unknown options are ignored in set_options commandLoïc Hoguin
2018-11-16Allow overriding cowboy_http's idle_timeout per requestLoïc Hoguin
This allows requests that expect to run longer to do so without impacting the configuration of other requests.
2018-11-15Add the set_options stream handler commandLoïc Hoguin
The first two options to benefit from this are the cowboy_compress_h options.
2018-11-15Add a compress_buffering option to cowboy_compress_hLoïc Hoguin
Also changes the behavior to disable buffering by default, so that the default works in all cases, including server-sent events.
2018-11-14Don't send the content-length header in empty 304 responsesLoïc Hoguin
It's OK to send it when set explicitly, as it can be set to what the representation's size would have been.
2018-11-14Ignore the boundary parameter when accepting multipartLoïc Hoguin
2018-11-14Allow disabling keep-alive for HTTP/1.0 connectionsLoïc Hoguin
2018-11-14Don't send an unnecessary content-type header with cowboy_restLoïc Hoguin
2018-11-13Remove two unnecessary debug callsLoïc Hoguin
2018-11-13Add the {deflate, boolean()} Websocket commandLoïc Hoguin
It allows to temporarily disable Websocket compression when it was negotiated. It's ignored otherwise. This can be used as fine-grained control when some frames do not compress well.
2018-11-12Add deflate options for Websocket compressionLoïc Hoguin
They allow the server to configure what it is willing to accept for both the negotiated configuration (takeover and window bits) and the other zlib options (level, mem_level and strategy). This can be used to reduce the memory and/or CPU footprint of the compressed data, which comes with a cost in compression ratio.
2018-11-11Enable range requests support in cowboy_staticLoïc Hoguin
2018-11-11Add ProvideRangeCallback tests using sendfileLoïc Hoguin
And fix this case when multiple ranges are requested.
2018-11-11Add automatic ranged request handling for bytes unitsLoïc Hoguin
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-09Add sendfile support to cowboy_req:stream_bodyLoïc Hoguin
It is now possible to stream one or more sendfile tuples. A simple example of what can now be done would be for example to build a tar file on the fly using the sendfile syscall for sending the files, or to support Range requests with more than one range with the sendfile syscall. When using cowboy_compress_h unfortunately we have to read the file in order to send it. More options will be added at a later time to make sure users don't read too much into memory. This is a new feature however so existing code is not affected. Also rework cowboy_http's data sending to be flatter.
2018-11-07Add support for range requests (RFC7233) in cowboy_restLoïc Hoguin
This is currently undocumented but is planned to be documented in the next version.
2018-11-05Test stop against all relevant REST callbacksLoïc Hoguin
2018-11-05Test switch_handler against all relevant REST callbacksLoïc Hoguin
2018-11-04Add the rate_limited/2 REST callbackLoïc Hoguin
2018-11-03Add a test suite for RFC6585Loïc Hoguin
2018-11-03Add an option to disable sendfile for a listenerLoïc Hoguin