summaryrefslogtreecommitdiffstats
path: root/docs/en/cowboy/2.0/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-12-28 15:21:25 +0100
committerLoïc Hoguin <[email protected]>2016-12-28 15:21:25 +0100
commit15d6172d27e1e5fc0435f00eb17faa8f79ccfba1 (patch)
treed1957b773a6a33bff0266fcacace579fe01c449d /docs/en/cowboy/2.0/guide
parent489533603eb88a427df579039475ffd08b176e40 (diff)
downloadninenines.eu-15d6172d27e1e5fc0435f00eb17faa8f79ccfba1.tar.gz
ninenines.eu-15d6172d27e1e5fc0435f00eb17faa8f79ccfba1.tar.bz2
ninenines.eu-15d6172d27e1e5fc0435f00eb17faa8f79ccfba1.zip
Update docs
Diffstat (limited to 'docs/en/cowboy/2.0/guide')
-rw-r--r--docs/en/cowboy/2.0/guide/resource_design.asciidoc9
-rw-r--r--docs/en/cowboy/2.0/guide/resource_design/index.html9
2 files changed, 8 insertions, 10 deletions
diff --git a/docs/en/cowboy/2.0/guide/resource_design.asciidoc b/docs/en/cowboy/2.0/guide/resource_design.asciidoc
index 691953f1..2325b9f2 100644
--- a/docs/en/cowboy/2.0/guide/resource_design.asciidoc
+++ b/docs/en/cowboy/2.0/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
diff --git a/docs/en/cowboy/2.0/guide/resource_design/index.html b/docs/en/cowboy/2.0/guide/resource_design/index.html
index 895f22b3..0b4fbb52 100644
--- a/docs/en/cowboy/2.0/guide/resource_design/index.html
+++ b/docs/en/cowboy/2.0/guide/resource_design/index.html
@@ -217,11 +217,10 @@ implement the <code>moved_permanently</code> callback.</p></div>
<div class="sect1">
<h2 id="_the_request">The request</h2>
<div class="sectionbody">
-<div class="paragraph"><p>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 <code>malformed_request</code>.</p></div>
+<div class="paragraph"><p>Do you need to read the query string? Individual headers?
+Implement <code>malformed_request</code> and do all the parsing and
+validation in this function. Note that the body should not
+be read at this point.</p></div>
<div class="paragraph"><p>May there be a request body? Will I know its size?
What&#8217;s the maximum size of the request body I&#8217;m willing
to accept? Implement <code>valid_entity_length</code>.</p></div>