0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00
Commit graph

28 commits

Author SHA1 Message Date
Loïc Hoguin
fd3c40c7ee Wrap-up the user guide 2014-06-25 11:23:58 +02:00
Loïc Hoguin
642630fea1 Add a multipart intro chapter to the guide 2014-06-23 17:51:36 +02:00
Loïc Hoguin
05503affa8 Add a stub chapter with all the REST flowcharts
The detailed explanations will be written at a later time.
2014-06-21 18:50:50 +02:00
Loïc Hoguin
7a808e0aa3 Add a REST principles chapter to the guide
This is a complex subject so hopefully I did not introduce
errors while trying to explain it.
2014-06-04 15:28:27 +02:00
Loïc Hoguin
239e5e0ba7 Update and improve Websocket chapters in the guide 2014-03-03 16:59:02 +01:00
Loïc Hoguin
917cf99e10 Add and document the new multipart code
The old undocumented API is removed entirely.

While a documentation exists for the new API, it will not
be considered set in stone until further testing has been
performed, and a file upload example has been added.

The new API should be a little more efficient than the
old API, especially with smaller messages.
2014-02-06 19:36:25 +01:00
Loïc Hoguin
6672ea0415 Review, improve and document the static files handler
Changes include:

 *  Much simplified route configuration.

 *  Etag generation is now enabled by default.

 *  Web mimetypes are now detected by default. A bigger list of
    mimetypes can be detected without any additional library.

 *  Mimetypes can no longer be specified as a list. Copying this
    list for new connections is too costy. You can easily convert
    it into a function and pass that function to the handler instead.

 *  You can however specify a single hardcoded mimetype. Mostly
    useful when serving a single file, like an index.html file,
    to avoid extra operations.

 *  Specifying a path as a list of tokens is not possible anymore.
    Use either a binary or a string.

 *  Using a private directory will not work if the application
    was not started properly. Cowboy will not attempt to find
    the location of this directory if the VM doesn't know it,
    as this caused issues in some setups.

 *  Overall the code has been much simplified and clarified,
    and of course has now been documented.
2013-11-02 14:41:46 +01:00
Loïc Hoguin
2b2829f585 Greatly expand on the Req object
Cut in four different chapters: request, request body,
response and cookies.
2013-09-23 15:44:10 +02:00
Loïc Hoguin
7906f30d83 Greatly improve the HTTP handlers chapter 2013-09-18 20:29:48 +02:00
Loïc Hoguin
7319526de6 Added a chapter about life of HTTP requests
Reworked the table of contents also.
2013-09-18 12:02:37 +02:00
Loïc Hoguin
61ca86b054 Greatly improve the guide introduction 2013-06-27 00:02:12 +02:00
Loïc Hoguin
5291c3eb0a Update the REST chapter of the guide 2013-04-26 14:12:29 +02:00
Loïc Hoguin
a2f4703e5e Improve static file handler guide chapter
Add more infos about MIME types and the file option.
2013-04-25 18:43:48 +02:00
Loïc Hoguin
66f7c15c4d Add a guide section for resource links 2013-03-22 19:59:35 +01:00
Loïc Hoguin
b2ffff9bec Add cowboy:set_env/3 2013-02-20 12:14:21 +01:00
Loïc Hoguin
b2ba4d28f8 Add a section about closing the connection in the guide 2013-01-29 13:33:47 +01:00
Loïc Hoguin
4b15d8f6e3 First draft done for the request object guide chapter 2013-01-20 15:14:13 +01:00
Loïc Hoguin
6d98b320ff Finish up the Internals chapter 2013-01-18 20:22:49 +01:00
Loïc Hoguin
a27296b34d Document loop handlers in the guide 2013-01-18 19:51:00 +01:00
Loïc Hoguin
529de4d518 Beginning of request object chapter in the guide 2013-01-18 18:04:21 +01:00
Loïc Hoguin
1476b13ca0 Add plain HTTP handlers documentation to the guide 2013-01-18 17:07:46 +01:00
Loïc Hoguin
acd89f6116 Explain how to write custom protocol upgrades in the guide 2013-01-18 00:15:00 +01:00
Loïc Hoguin
1f1969ba71 Get the basics of Websocket covered in the guide 2013-01-17 23:58:55 +01:00
Loïc Hoguin
1b996794ee Add cowboy_bstr:capitalize_token/1
For optional header name capitalization. See the guide section about it.
2013-01-17 23:37:50 +01:00
Loïc Hoguin
1b3f510b7e Add middleware support
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-03 22:47:51 +01:00
Loïc Hoguin
06e74355c0 Add a skeleton of the guide to ease user contributions
Has some stuff that aren't in master yet, and lacks a lot more
that is already in master.
2013-01-01 18:27:41 +01:00
Loïc Hoguin
f63d3f08cf Cosmetic changes to various documentation files 2012-11-27 16:24:08 +01:00
Loïc Hoguin
f59ee550ad Add Introduction chapter to the guide 2012-10-15 14:35:52 +02:00