aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-07-15Req Body length can be a non_neg_integer or infinitySteven Magelowitz
2017-07-14Update Erlang.mkLoïc Hoguin
2017-07-14Fix the remaining http_SUITE test casesLoïc Hoguin
2017-07-13Fix more of the older testsLoïc Hoguin
The Cowboy behavior has changed a little and gives more accurate error responses now. And in some cases, successes.
2017-07-12Fix a few of the older testsLoïc Hoguin
2017-07-12Remove tests for set_resp_body with a stream funLoïc Hoguin
2017-07-12Catch more 400 errorsLoïc Hoguin
2017-07-12Remove any mention of the waiting_stream hackLoïc Hoguin
2017-07-12Remove the onresponse tests from http_SUITELoïc Hoguin
2017-07-12Disable testing of ErlLLVMLoïc Hoguin
2017-07-12Update to Cowlib 2.0.0-rc.1Loïc Hoguin
Also update the Erlang versions tested on CI.
2017-07-01Aggregate validation errors and pass them in exceptionLoïc Hoguin
2017-06-28Update version to 2.0.0-pre.102.0.0-pre.10Loïc Hoguin
2017-06-28Update OTP versionsLoïc Hoguin
2017-06-28Fix wrong percent encoding in a router testLoïc Hoguin
2017-06-28Remove the cyrillic latin1 testLoïc Hoguin
These characters are not allowed in URI paths.
2017-06-28Fix unit tests in cowboy_router following interface changesLoïc Hoguin
2017-06-28Improve the interface for constraintsLoïc Hoguin
There are two important changes in this commit. Constraints are now producing an error tuple. This error tuple in turn can be provided to a function for formatting a human readable error message. Both the error tuple and the formatting code are controlled by and part of the constraint function. Constraints now also implement the reverse operation. When constraint functions only validate, the reverse operation will be the same as the forward operation. When they also do some conversion then the reverse operation will reverse it. Since constraints are now performing 3 different operations (forward, reverse and format_error), they now take the form of a function accepting two separate arguments. The operation is the first argument. In addition, the return value was changed to take the form of {ok, Value} | {error, Reason}. The value must be returned as-is if it was not modified.
2017-06-28Remove outdated multipart testsLoïc Hoguin
They have equivalents in req_SUITE.
2017-06-28Add another RFC to the pileLoïc Hoguin
2017-06-14Fix a confusing code snippetLoïc Hoguin
Reported by Jordan Chaitin.
2017-06-09Make cowboy_req:read_part return multipart headers as mapLoïc Hoguin
2017-06-07Remove NumAcceptors argument from start_clear/tlsLoïc Hoguin
They are now cowboy:start_clear/3 and cowboy:start_tls/3. The NumAcceptors argument can be specified via the num_acceptor transport option. Ranch has been updated to 1.4.0 to that effect.
2017-06-02Fix terminate not being called on connection close in HTTP/1.1Loïc Hoguin
Introduces the new stream_handler_SUITE test suite. More cases will be added later on.
2017-05-31Don't terminate streams that were already terminatedLoïc Hoguin
This and the issues in the last two commits were reported by leo2007 on IRC.
2017-05-31Fix bad accounting of HTTP/2 windowsLoïc Hoguin
The previous code was incorrectly substracting the maximum frame size we could send when the data we were actually sending was much lower.
2017-05-31Apply the received SETTINGS frameLoïc Hoguin
2017-05-28Introduce the req_filter Websocket optionLoïc Hoguin
This option allows customizing the compacting of the Req object when using Websocket. By default it will keep most public fields excluding headers of course, since those can be large.
2017-05-23Fix a harmless warning in testsLoïc Hoguin
2017-05-23Add many tests for RFC7540 5.1 and 5.1.1 and related fixesLoïc Hoguin
2017-05-23Add a test suite for h2specLoïc Hoguin
h2spec must be preinstalled on the machine and its location pointed at by the H2SPEC environment variable.
2017-05-20Add another RFC to the list of specsLoïc Hoguin
2017-05-19Update to 2.0.0-pre.92.0.0-pre.9Loïc Hoguin
2017-05-19Preliminary h2 flow control supportLoïc Hoguin
Existing tests pass. A number of things remain to be done. Has only been tested with Gun so far. Feedback welcome!
2017-05-07make set_env working with maps.Alexandre Snarskii
2017-05-07Add a test for cowboy:set_envLoïc Hoguin
2017-05-05Add test for inactivity_timeout option in cowboy_http2Gary Rennie
The inactivity timeout is used to close the connection in the absence of any data from the client. Since this is not part or the rfc7540 spec, a new http2_SUITE module has been created with a test for the inactivity_timeout.
2017-05-05length can be a non_neg_integer or infinitySteven Magelowitz
2017-05-05Add OTP 19.3.3 and 20-rc1 to CI; remove OTP 18Loïc Hoguin
2017-05-05Properly handle 101 upgrade responses for WebsocketLoïc Hoguin
2017-05-05Add inactivity_timeout and other options improvementsLoïc Hoguin
2017-05-03Kill all children processes when terminating the connectionLoïc Hoguin
This is a more or less temporary solution to an existing problem. In the future we will need to enforce a shutdown timeout for these processes.
2017-05-03Add the idle_timeout HTTP/1.1 protocol optionLoïc Hoguin
This fixes the connection being dropped because of request_timeout despite there being some active streams.
2017-04-18Update Websocket handler docs default timeoutGary Rennie
This was changed from infinity to 60s in a45813c60f0f983a24ea29d491b37f0590fdd087
2017-04-18Remove an outdated todo comment2.0.0-pre.8Loïc Hoguin
2017-04-18Get rid of stray messages when killing HTTP/2 request processesLoïc Hoguin
2017-04-18Make the default 204 response go through stream handlersLoïc Hoguin
2017-04-18Pass the HTTP/2 switch_protocol event to stream handlersLoïc Hoguin
To accomplish this the code for sending the 101 response was moved to the cowboy_http2 module.
2017-04-18Add more RFCs to the specs listLoïc Hoguin
2017-04-10Initial cowboy_stream manualLoïc Hoguin