aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide
AgeCommit message (Collapse)Author
2024-01-08Document body reading in auto modeLoïc Hoguin
It is now tested both via cowboy_req:read_body and via cowboy_req:cast. Removes a bad example from the guide of body reading with period of infinity, which does not work.
2024-01-04Rework and improve the decompress stream handlerLoïc Hoguin
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.
2023-12-21Add cowboy_decompress_h stream handlerjdamanalo
2023-12-15Add timeout to cowboy_loopjdamanalo
LH: I have added a test that does both hibernate and timeout and fixed a related issue. I also tweaked the docs and tests.
2023-12-07Fix position of rate_limited/2 callback in REST workflow guideLoïc Hoguin
2023-12-07Fix Websocket subprotocol exampleLoïc Hoguin
2023-12-06Fix typos in documentationKian-Meng, Ang
2023-05-02Fix Ranch link in user guideLoïc Hoguin
2023-04-28Cowboy 2.10.02.10.0Loïc Hoguin
2021-05-12Cowboy 2.9.02.9.0Loïc Hoguin
2021-04-24Two more HTTP specsLoïc Hoguin
2020-08-19Minor grammar correctionsThomas Sciaroni
Verb agreement error "The request process executes middlewares which, by default, including the router and then the execution of handlers." -> "The request process executes middlewares. By default, the request process executes the router and then the handlers." Adverbial clause at beginning of sentence needs comma "By default Cowboy comes..." -> "By default, Cowboy comes..."
2020-07-01Tweak a sentence in the guideLoïc Hoguin
Thanks Tamir Halperin for pointing this out. [skip ci]
2020-05-21Cowboy 2.8.0Loïc Hoguin
2020-05-20Clarify the routing algorithmLoïc Hoguin
2020-03-29Add more specificationsLoïc Hoguin
2020-02-08Add Trace Context to the list of specsLoïc Hoguin
2020-02-08Clarify modifying/adding to the Req objectLoïc Hoguin
2020-01-06Add a skeleton performance chapter to the guideLoïc Hoguin
2020-01-06Use active,NLoïc Hoguin
This reduces the number of times we need to ask for more packets, and as a result we get a fairly large boost in performance, especially with HTTP/1.1. Unfortunately this makes Cowboy require at least Erlang/OTP 21.3+ because the ssl application did not have active,N. For simplicity the version required will be Erlang/OTP 22+. In addition this change improves hibernate handling in cowboy_websocket. Hibernate will now work for HTTP/2 transport as well, and stray or unrelated messages will no longer cancel hibernate (the process will handle the message and go back into hibernation). Thanks go to Stressgrid for benchmarking an early version of this commit: https://stressgrid.com/blog/cowboy_performance_part_2/
2019-12-31Add new RFCs to the listLoïc Hoguin
2019-10-10Cowboy 2.7.0Loïc Hoguin
2019-10-10Add shutdown_reason Websocket commandLoïc Hoguin
This allows changing the normal exit reason of Websocket processes, providing a way to signal other processes of why the exit occurred.
2019-10-09Implement flow control for HTTP/1.1Loïc Hoguin
We now stop reading from the socket unless asked to, when we reach the request body. The option initial_stream_flow_size controls how much data we read without being asked, as an optimization. We may also have received additional data along with the request headers. This commit also reworks the timeout handling for HTTP/1.1 because the stray timeout message was easily reproducible after implementing the flow control. The issue should be gone for good this time.
2019-10-07Add migration guide for Cowboy 2.7Loïc Hoguin
2019-10-07Add new stream handlers to the guideLoïc Hoguin
Also link from the guide to manual pages.
2019-10-06Document the commands based Websocket interfaceLoïc Hoguin
The old interface with ok|reply|stop tuples is deprecated.
2019-10-06Fix PUT when resource doesn't exist in flowchartLoïc Hoguin
This required moving around a lot of things so hopefully I did not add errors while doing so. Only time will tell. Also add the 415 that can result from content_types_accepted.
2019-10-05Fix REST flowchart around 201 response for PUTLoïc Hoguin
When the method is PUT we do not check the location header.
2019-10-03Document stopping the listener in App:stop/1Loïc Hoguin
2019-09-28Add persistent_term support to the routerLoïc Hoguin
2019-09-05Minor grammar correctionAlastair Hole
Noun 'setup' -> verb phrase 'set up'
2019-07-22Add more related specsLoïc Hoguin
2019-07-12Add two related specsLoïc Hoguin
2019-05-27Add two new RFCs to the listLoïc Hoguin
2019-04-24Add RFC 8586Loïc Hoguin
2019-04-05Cowboy 2.6.32.6.3Loïc Hoguin
2019-04-04Cowboy 2.6.22.6.2Loïc Hoguin
Updates Cowlib to 2.7.2.
2019-04-03Describe what star represent in the REST flowchartsLoïc Hoguin
2019-04-03Clarify what the private directory isGinetom
2019-04-02Add this year's April Fool's RFCLoïc Hoguin
2019-03-25Add a related RFCLoïc Hoguin
2018-11-28Cowboy 2.6.12.6.1Loïc Hoguin
2018-11-18Document cowboy_stream_h/cowboy_compress_hLoïc Hoguin
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-17Prepare the Cowboy 2.6 releaseLoïc Hoguin
2018-11-14Document using undefined as content_types_provided callbackLoïc Hoguin
This is a convention that indicates the callback will never be called, for example because the methods HEAD or GET are not accepted.
2018-11-14Document some undefined behavior in cowboy_routerLoïc Hoguin
2018-11-14Add a use case to loop handlersLoïc Hoguin
2018-11-04Add the rate_limited/2 REST callbackLoïc Hoguin