aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-12-28 15:16:10 +0100
committerLoïc Hoguin <[email protected]>2016-12-28 15:17:43 +0100
commitf7094ad78f6638d0e940a724fe5a857cc857155f (patch)
tree82d3df6ce6e9c7787bddb84504ffe9c0003ba44c /doc/src/guide
parentafc7d088134fdb2696da1f79b260d4c8dce56112 (diff)
downloadcowboy-f7094ad78f6638d0e940a724fe5a857cc857155f.tar.gz
cowboy-f7094ad78f6638d0e940a724fe5a857cc857155f.tar.bz2
cowboy-f7094ad78f6638d0e940a724fe5a857cc857155f.zip
Update the cowboy_rest manual
Diffstat (limited to 'doc/src/guide')
-rw-r--r--doc/src/guide/resource_design.asciidoc9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/src/guide/resource_design.asciidoc b/doc/src/guide/resource_design.asciidoc
index 691953f..2325b9f 100644
--- a/doc/src/guide/resource_design.asciidoc
+++ b/doc/src/guide/resource_design.asciidoc
@@ -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