| 1 |
// a2x: --dblatex-opts "-P latex.output.revhistory=0 -P doc.publisher.show=0 -P index.numbered=0" |
| 2 |
// a2x: --dblatex-opts "-s cowboy" |
| 3 |
// a2x: -d book --attribute tabsize=4 |
| 4 |
|
| 5 |
= Cowboy User Guide |
| 6 |
|
| 7 |
// REST: where should i handle bindings? init, probably. qs? in media type functions |
| 8 |
// REST: explain how a module per media type is good; module may be shared between client/server |
| 9 |
|
| 10 |
= Rationale |
| 11 |
|
| 12 |
include::modern_web.asciidoc[The modern Web] |
| 13 |
|
| 14 |
include::erlang_web.asciidoc[Erlang and the Web] |
| 15 |
|
| 16 |
include::security_model.asciidoc[Security model] |
| 17 |
|
| 18 |
= Introduction |
| 19 |
|
| 20 |
include::introduction.asciidoc[Introduction] |
| 21 |
|
| 22 |
include::getting_started.asciidoc[Getting started] |
| 23 |
|
| 24 |
include::flow_diagram.asciidoc[Flow diagram] |
| 25 |
|
| 26 |
= Configuration |
| 27 |
|
| 28 |
include::listeners.asciidoc[Listeners] |
| 29 |
|
| 30 |
include::routing.asciidoc[Routing] |
| 31 |
|
| 32 |
include::constraints.asciidoc[Constraints] |
| 33 |
|
| 34 |
= Handlers |
| 35 |
|
| 36 |
include::handlers.asciidoc[Handlers] |
| 37 |
|
| 38 |
include::loop_handlers.asciidoc[Loop handlers] |
| 39 |
|
| 40 |
include::static_files.asciidoc[Static files] |
| 41 |
|
| 42 |
= Request and response |
| 43 |
|
| 44 |
include::req.asciidoc[Request details] |
| 45 |
|
| 46 |
include::req_body.asciidoc[Reading the request body] |
| 47 |
|
| 48 |
include::resp.asciidoc[Sending a response] |
| 49 |
|
| 50 |
include::cookies.asciidoc[Using cookies] |
| 51 |
|
| 52 |
include::multipart.asciidoc[Multipart] |
| 53 |
|
| 54 |
= REST |
| 55 |
|
| 56 |
include::rest_principles.asciidoc[REST principles] |
| 57 |
|
| 58 |
include::rest_handlers.asciidoc[Handling REST requests] |
| 59 |
|
| 60 |
include::rest_flowcharts.asciidoc[REST flowcharts] |
| 61 |
|
| 62 |
include::resource_design.asciidoc[Designing a resource handler] |
| 63 |
|
| 64 |
= Websocket |
| 65 |
|
| 66 |
include::ws_protocol.asciidoc[The Websocket protocol] |
| 67 |
|
| 68 |
include::ws_handlers.asciidoc[Websocket handlers] |
| 69 |
|
| 70 |
= Advanced |
| 71 |
|
| 72 |
include::streams.asciidoc[Streams] |
| 73 |
|
| 74 |
include::middlewares.asciidoc[Middlewares] |
| 75 |
|
| 76 |
include::performance.asciidoc[Performance] |
| 77 |
|
| 78 |
include::security_checklist.asciidoc[Security checklist] |
| 79 |
|
| 80 |
= Additional information |
| 81 |
|
| 82 |
include::migrating_from_2.17.asciidoc[Migrating from Cowboy 2.17 to 2.18] |
| 83 |
|
| 84 |
include::migrating_from_2.16.asciidoc[Migrating from Cowboy 2.16 to 2.17] |
| 85 |
|
| 86 |
include::migrating_from_2.15.asciidoc[Migrating from Cowboy 2.15 to 2.16] |
| 87 |
|
| 88 |
include::migrating_from_2.14.asciidoc[Migrating from Cowboy 2.14 to 2.15] |
| 89 |
|
| 90 |
include::migrating_from_2.13.asciidoc[Migrating from Cowboy 2.13 to 2.14] |
| 91 |
|
| 92 |
include::migrating_from_2.12.asciidoc[Migrating from Cowboy 2.12 to 2.13] |
| 93 |
|
| 94 |
include::migrating_from_2.11.asciidoc[Migrating from Cowboy 2.11 to 2.12] |
| 95 |
|
| 96 |
include::migrating_from_2.10.asciidoc[Migrating from Cowboy 2.10 to 2.11] |
| 97 |
|
| 98 |
include::migrating_from_2.9.asciidoc[Migrating from Cowboy 2.9 to 2.10] |
| 99 |
|
| 100 |
include::migrating_from_2.8.asciidoc[Migrating from Cowboy 2.8 to 2.9] |
| 101 |
|
| 102 |
include::migrating_from_2.7.asciidoc[Migrating from Cowboy 2.7 to 2.8] |
| 103 |
|
| 104 |
include::migrating_from_2.6.asciidoc[Migrating from Cowboy 2.6 to 2.7] |
| 105 |
|
| 106 |
include::migrating_from_2.5.asciidoc[Migrating from Cowboy 2.5 to 2.6] |
| 107 |
|
| 108 |
include::migrating_from_2.4.asciidoc[Migrating from Cowboy 2.4 to 2.5] |
| 109 |
|
| 110 |
include::migrating_from_2.3.asciidoc[Migrating from Cowboy 2.3 to 2.4] |
| 111 |
|
| 112 |
include::migrating_from_2.2.asciidoc[Migrating from Cowboy 2.2 to 2.3] |
| 113 |
|
| 114 |
include::migrating_from_2.1.asciidoc[Migrating from Cowboy 2.1 to 2.2] |
| 115 |
|
| 116 |
include::migrating_from_2.0.asciidoc[Migrating from Cowboy 2.0 to 2.1] |
| 117 |
|
| 118 |
include::migrating_from_1.0.asciidoc[Migrating from Cowboy 1.0 to 2.0] |
| 119 |
|
| 120 |
include::specs.asciidoc[HTTP and other specifications] |