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

Update the cowboy_rest manual

This commit is contained in:
Loïc Hoguin 2016-12-28 15:16:10 +01:00
parent afc7d08813
commit f7094ad78f
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
3 changed files with 465 additions and 325 deletions

View file

@ -164,11 +164,10 @@ implement the `moved_permanently` callback.
=== The request
Do we need to perform extra checks to make sure the request
is valid? Cowboy will do many checks when receiving the
request already, do we need more? Note that this only
applies to the request-line and headers of the request,
and not the body. Implement `malformed_request`.
Do you need to read the query string? Individual headers?
Implement `malformed_request` and do all the parsing and
validation in this function. Note that the body should not
be read at this point.
May there be a request body? Will I know its size?
What's the maximum size of the request body I'm willing