docs(defaults): list of default header values (#237)

Fixes #226.
This commit is contained in:
Ahmad Nassri 2017-02-21 15:38:54 -05:00 committed by Timothy Gu
parent 560d5d6a02
commit 673ebb2089
1 changed files with 12 additions and 0 deletions

View File

@ -187,6 +187,18 @@ Note that only `method`, `headers`, `redirect` and `body` are allowed in `window
}
```
#### Default Headers
If no values are set, the following request headers will be sent automatically:
Header | Value
----------------- | --------------------------------------------------------
`Accept-Encoding` | `gzip,deflate` _(when `options.compress === true`)_
`Accept` | `*/*`
`Connection` | `close` _(when no `options.agent` is present)_
`Content-Length` | _(automatically calculated, if possible)_
`User-Agent` | `node-fetch/1.0 (+https://github.com/bitinn/node-fetch)`
# License