Skip to content

Commit

Permalink
Improved docs for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscop committed Jun 2, 2021
1 parent 262ffd8 commit 02bd2c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/documentation/reply/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ server(
ctx => cookie('foo', 'bar'), // Set a cookie
ctx => cookie('xyz', { obj: 'okay' }), // Stringify the object
ctx => cookie('abc', 'def', { maxAge: 100000 }), // Pass some options
ctx => cookie('fizz', 'buzz').send(), // Set the cookie AND finish the request
ctx => cookie('fizz', 'buzz').send(), // Set cookie AND finish the request
);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/reply/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h2 id="cookie-">cookie()</h2>
ctx =&gt; cookie(&#39;foo&#39;, &#39;bar&#39;), // Set a cookie
ctx =&gt; cookie(&#39;xyz&#39;, { obj: &#39;okay&#39; }), // Stringify the object
ctx =&gt; cookie(&#39;abc&#39;, &#39;def&#39;, { maxAge: 100000 }), // Pass some options
ctx =&gt; cookie(&#39;fizz&#39;, &#39;buzz&#39;).send(), // Set the cookie AND finish the request
ctx =&gt; cookie(&#39;fizz&#39;, &#39;buzz&#39;).send(), // Set cookie AND finish the request
);
</code></pre>
<pre><code class="lang-js">const { cookie } = server.reply;
Expand Down

0 comments on commit 02bd2c1

Please sign in to comment.