aboutsummaryrefslogtreecommitdiffstats
path: root/guide
AgeCommit message (Collapse)Author
2013-04-11Merge branch 'eventsource-helper' of git://github.com/jdavisp3/cowboyLoïc Hoguin
2013-04-11Fix static handler snippet in the guideLoïc Hoguin
Thanks to Martin Törnwall for pointing this out.
2013-04-11First draft of the REST chapter in the guideLoïc Hoguin
2013-04-11Remove cowboy_req:peer_addr/1Loïc Hoguin
This kind of function is highly dependent on the proxy used, therefore parsing was added for x-forwarded-for instead and we just let users write the function that works for them. The code can be easily extracted if anyone was using the function.
2013-04-06Add a reference to an eventsource helper utility.Dave Peticolas
2013-04-03Update Ranch to 0.8.0Loïc Hoguin
2013-04-02Replace init_stream/5 with stream_body/2Loïc Hoguin
This allows us to change the max chunk length on a per chunk basis instead of for the whole stream. It's also much easier to use this way even if we don't want to change the chunk size.
2013-03-22Add a guide section for resource linksLoïc Hoguin
2013-03-06Check the length before reading the body in body/1 and body_qs/1rambocoder
2013-03-05Make streamed chunk size configurableLoïc Hoguin
Defaults to a maximum of 1000000 bytes. Also standardize the te_identity and te_chunked decoding functions. Now they both try to read as much as possible (up to the limit), making body reading much faster when not using chunked encoding.
2013-03-02Describe arguments of the HTTP handler callbacksLoïc Hoguin
2013-03-02Explain what are listeners and acceptors in Getting StartedLoïc Hoguin
2013-03-02Add a recommendation about static files in production to the guideLoïc Hoguin
2013-03-01Add an example of onresponse hooksAdam Cammack
Also fix the guide entry on hooks.
2013-03-01Fix an error in the guide introductionLoïc Hoguin
Reported by Joe Armstrong.
2013-02-27Add a Supported platforms section to the guide introductionLoïc Hoguin
2013-02-20Add cowboy:set_env/3Loïc Hoguin
2013-02-16Add sub protocol behaviourJames Fish
2013-02-12Merge branch 'static_doc' of git://github.com/acammack/cowboyLoïc Hoguin
2013-02-11Fix examples in cowboy_static edoc and guideAdam Cammack
2013-02-11Add a few directions in the REST chapter in the guideLoïc Hoguin
This is obviously not proper documentation. We will properly document it when the API stabilizes.
2013-01-31Small routing guide fixIvan Lisenkov
Make cowboy_router:compile/1 return to be consistent with current implementation.
2013-01-30Fix small error in the websocket chapter in the guideLoïc Hoguin
Reported by Michel Rijnders.
2013-01-29Add a section about closing the connection in the guideLoïc Hoguin
2013-01-28Add the 'function' constraintLoïc Hoguin
2013-01-28Add the 'int' constraintLoïc Hoguin
2013-01-28New routingLoïc Hoguin
Ultimately few things change, it's mostly just a nicer syntax and slightly different expectations. The name of the value `dispatch` did not change, because the previous dispatch values will now fail if the code is not updated to using `cowboy_router:compile/1`. No constraints have been implemented in this commit.
2013-01-22Replace terminate/2 with terminate/3, adding a ReasonLoïc Hoguin
This should have been done a *long* time ago, back when I initially added Websocket support. This is the first part of two in improving loop handler support with regards to socket closure. Reason may include: {normal, shutdown} for the most normal shutdown, {normal, timeout} for a loop handler timeout shutdown, or {error, _} if an error occured.
2013-01-21Merge pull request #369 from rramsden/patch-1Loïc Hoguin
Fix typo in the guide introduction
2013-01-20First draft done for the request object guide chapterLoïc Hoguin
2013-01-19More request object documentation in the guideLoïc Hoguin
2013-01-18Document the static handler in the guideLoïc Hoguin
2013-01-18Finish up the Internals chapterLoïc Hoguin
2013-01-18Document loop handlers in the guideLoïc Hoguin
2013-01-18Beginning of request object chapter in the guideLoïc Hoguin
2013-01-18Add plain HTTP handlers documentation to the guideLoïc Hoguin
2013-01-18Finish the routing chapter of the guideLoïc Hoguin
Note that this is the new routing not yet available in master. The code should follow in a few days.
2013-01-18Fix capitalize_hook exampleLoïc Hoguin
2013-01-17Fix typo in the guide introductionRichard Ramsden
2013-01-18Add hooks documentation to the guideLoïc Hoguin
2013-01-18Do not use tabulations in the guideLoïc Hoguin
2013-01-18Explain how to write custom protocol upgrades in the guideLoïc Hoguin
2013-01-17Get the basics of Websocket covered in the guideLoïc Hoguin
2013-01-17Add cowboy_bstr:capitalize_token/1Loïc Hoguin
For optional header name capitalization. See the guide section about it.
2013-01-11Fix getting started example, missing envLoïc Hoguin
2013-01-03Add middleware supportLoïc Hoguin
Middlewares allow customizing the request processing. All existing Cowboy project are incompatible with this commit. You need to change `{dispatch, Dispatch}` in the protocol options to `{env, [{dispatch, Dispatch}]}` to fix your code.
2013-01-03Salvage the README and move parts into the guideLoïc Hoguin
2013-01-01Add a skeleton of the guide to ease user contributionsLoïc Hoguin
Has some stuff that aren't in master yet, and lacks a lot more that is already in master.
2012-11-27Cosmetic changes to various documentation filesLoïc Hoguin
2012-10-15Add Introduction chapter to the guideLoïc Hoguin