docs: update information about cookies

This commit is contained in:
Antoni Kepinski 2020-04-15 10:53:59 +02:00
parent ebbf45cc67
commit 7c6031f4c1
No known key found for this signature in database
GPG Key ID: 215798E8B4A4FCDC
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@
- [Post with form parameters](#post-with-form-parameters) - [Post with form parameters](#post-with-form-parameters)
- [Handling exceptions](#handling-exceptions) - [Handling exceptions](#handling-exceptions)
- [Handling client and server errors](#handling-client-and-server-errors) - [Handling client and server errors](#handling-client-and-server-errors)
- [Handling cookies](#handling-cookies)
- [Advanced Usage](#advanced-usage) - [Advanced Usage](#advanced-usage)
- [Streams](#streams) - [Streams](#streams)
- [Buffer](#buffer) - [Buffer](#buffer)
@ -258,6 +259,10 @@ fetch('https://httpbin.org/status/400')
.then(res => console.log('will not get here...')); .then(res => console.log('will not get here...'));
``` ```
### Handling cookies
Cookies are not stored by default. However, cookies can be extracted and passed by manipulating request and response headers. See [Extract Set-Cookie Header](#extract-set-cookie-header) for details.
## Advanced Usage ## Advanced Usage
### Streams ### Streams