diff options
author | Thomas Sciaroni <[email protected]> | 2020-08-18 14:14:56 -0700 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-08-19 14:37:50 +0200 |
commit | 70d393caad3997068f0e14906d9c1bd49258d7fb (patch) | |
tree | 9d033d2089f86f3342c66cacf871d5741ca0da2e /doc | |
parent | 03d306e6d172eb272a564aa8626d4554d1046455 (diff) | |
download | cowboy-70d393caad3997068f0e14906d9c1bd49258d7fb.tar.gz cowboy-70d393caad3997068f0e14906d9c1bd49258d7fb.tar.bz2 cowboy-70d393caad3997068f0e14906d9c1bd49258d7fb.zip |
Minor grammar corrections
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..."
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/guide/flow_diagram.asciidoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/guide/flow_diagram.asciidoc b/doc/src/guide/flow_diagram.asciidoc index 2d35d4d..9eb7466 100644 --- a/doc/src/guide/flow_diagram.asciidoc +++ b/doc/src/guide/flow_diagram.asciidoc @@ -31,14 +31,14 @@ configure Cowboy you may define one or more module that will receive all events associated with a stream, including the request, response, bodies, Erlang messages and more. -By default Cowboy comes configured with a stream handler +By default, Cowboy comes configured with a stream handler called `cowboy_stream_h`. This stream handler will create a new process for every request coming in, and then communicate with this process to read the body or send -a response back. The request process executes middlewares -which, by default, including the router and then the -execution of handlers. Like stream handlers, middlewares -may also be customized. +a response back. The request process executes middlewares. +By default, the request process executes the router and then +the handlers. Like stream handlers, middlewares may also be +customized. A response may be sent at almost any point in this diagram. If the response must be sent before the stream |