aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-08-09Remove broken links from examples READMELoïc Hoguin
2017-08-08Add missing cowboy_children moduleLoïc Hoguin
My bad! Still new at this.
2017-08-08Add OTP-20.0.2 to CILoïc Hoguin
2017-08-08Implement the shutdown timeout for request processesLoïc Hoguin
This should work very similar to normal supervisors, in particular during the shutdown sequence when the connection process goes down or switches to Websocket. Processes that need to enforce the shutdown timeout will be required to trap exits, just like in a supervisor. In a vanilla Cowboy, this only matters at connection shutdown, as Cowboy will otherwise wait for the request process to be down before stopping the stream. Tests are currently missing.
2017-07-26Fix HTTP/2 server pushLoïc Hoguin
Cowboy was encoding the headers then decoding them when initializing the request. The problem is that the encoding and decoding contexts are not the same. Now, Cowboy will directly use the headers it received in the push command for the new request. This is also more efficient. I am surprised it worked at all considering the issue.
2017-07-24Update version to 2.0.0-rc.12.0.0-rc.1Loïc Hoguin
2017-07-24Small tweak to the guideLoïc Hoguin
2017-07-23Write an initial draft of the streams chapterLoïc Hoguin
2017-07-23Remove yet another outdated todoLoïc Hoguin
2017-07-23Update the constraints chapterLoïc Hoguin
2017-07-23Update the flowchart chapterLoïc Hoguin
2017-07-20Add a related RFC for WebsocketLoïc Hoguin
This is important because it clarifies that sec-websocket-protocol is case sensitive when matching. Only the registry is case insensitive.
2017-07-20Remove cowboy_sub_protocol from the documentationLoïc Hoguin
This will be reintroduced in a future release once the interface stabilizes. For the time being it will be an internal module only.
2017-07-19Remove the old architecture chapterLoïc Hoguin
2017-07-19Remove the guide chapter about broken clientsLoïc Hoguin
None of these workarounds currently exist in Cowboy 2.0. We can resurrect the chapter later if it's still necessary, once we've added the workarounds back in some other form.
2017-07-19Fix the name of an option in the migration guideLoïc Hoguin
2017-07-19Remove hooks from the user guideLoïc Hoguin
They're gone!
2017-07-19Remove the broken examplesLoïc Hoguin
Hooks are gone, and we won't be able to stream body in REST in Cowboy 2.0-rc.1, and might not in 2.0 either. That is, other than via halting the processing.
2017-07-19Tweak the migration guideLoïc Hoguin
2017-07-19Remove CHANGELOGLoïc Hoguin
Please consult the appendixes in the user guide.
2017-07-19Update rebar.configLoïc Hoguin
2017-07-19Websocket options are no longer per listenerLoïc Hoguin
2017-07-19Add a guide appendix on migrating from Cowboy 1.0Loïc Hoguin
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