0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

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..."
This commit is contained in:
Thomas Sciaroni 2020-08-18 14:14:56 -07:00 committed by GitHub
parent 03d306e6d1
commit c1b088b18a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,14 +31,14 @@ configure Cowboy you may define one or more module that
will receive all events associated with a stream, including will receive all events associated with a stream, including
the request, response, bodies, Erlang messages and more. 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 called `cowboy_stream_h`. This stream handler will create
a new process for every request coming in, and then a new process for every request coming in, and then
communicate with this process to read the body or send communicate with this process to read the body or send
a response back. The request process executes middlewares a response back. The request process executes middlewares.
which, by default, including the router and then the By default, the request process executes the router and then
execution of handlers. Like stream handlers, middlewares the handlers. Like stream handlers, middlewares may also be
may also be customized. customized.
A response may be sent at almost any point in this A response may be sent at almost any point in this
diagram. If the response must be sent before the stream diagram. If the response must be sent before the stream