diff options
author | Loïc Hoguin <[email protected]> | 2016-11-07 01:45:57 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-11-07 01:45:57 +0200 |
commit | 1e1027960f5090f6ac98690cddef4d96201d9245 (patch) | |
tree | 0d5f5ed304f118c5eb1e238cd60e116a91e61b57 | |
parent | 8151ea9815afea8264ebabc69bcc96f9b0d3f228 (diff) | |
download | ninenines.eu-1e1027960f5090f6ac98690cddef4d96201d9245.tar.gz ninenines.eu-1e1027960f5090f6ac98690cddef4d96201d9245.tar.bz2 ninenines.eu-1e1027960f5090f6ac98690cddef4d96201d9245.zip |
Update docs
-rw-r--r-- | docs/en/cowboy/2.0/manual/cowboy_req.parse_header/index.html | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/en/cowboy/2.0/manual/cowboy_req.parse_header/index.html b/docs/en/cowboy/2.0/manual/cowboy_req.parse_header/index.html index a3a6cc2c..f2973e68 100644 --- a/docs/en/cowboy/2.0/manual/cowboy_req.parse_header/index.html +++ b/docs/en/cowboy/2.0/manual/cowboy_req.parse_header/index.html @@ -327,7 +327,23 @@ http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-style: italic"><span style="color: #9A1900">%% Accept everything when header is missing.</span></span>
<span style="color: #009900">Accept</span> <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #000000">cowboy_req:parse_header</span></span>(<span style="color: #990000"><<</span><span style="color: #FF0000">"accept"</span><span style="color: #990000">>></span>, <span style="color: #009900">Req</span>,
- [{#{<span style="color: #008080">#HUGOSHORTCODE</span><span style="color: #990000">-</span><span style="color: #993399">1</span>#}#}</tt></pre></div></div>
+ [{{ <span style="color: #990000"><<</span><span style="color: #FF0000">"*"</span><span style="color: #990000">>></span>, <span style="color: #990000"><<</span><span style="color: #FF0000">"*"</span><span style="color: #990000">>></span>, []}, <span style="color: #993399">1000</span>, []}])<span style="color: #990000">.</span></tt></pre></div></div>
+<div class="listingblock">
+<div class="title">Parse the content-length header</div>
+<div class="content"><!-- Generator: GNU source-highlight 3.1.8
+by Lorenzo Bettini
+http://www.lorenzobettini.it
+http://www.gnu.org/software/src-highlite -->
+<pre><tt><span style="font-style: italic"><span style="color: #9A1900">%% Default content-length is 0.</span></span>
+<span style="color: #009900">Length</span> <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #000000">cowboy_req:header</span></span>(<span style="color: #990000"><<</span><span style="color: #FF0000">"content-length"</span><span style="color: #990000">>></span>, <span style="color: #009900">Req</span>)<span style="color: #990000">.</span></tt></pre></div></div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_see_also">See also</h2>
+<div class="sectionbody">
+<div class="paragraph"><p><a href="../cowboy_req">cowboy_req(3)</a>,
+<a href="../cowboy_req.header">cowboy_req:header(3)</a>,
+<a href="../cowboy_req.headers">cowboy_req:headers(3)</a></p></div>
</div>
</div>
|