node-fetch
uses the timeout
property.
.timeout(n)
becomes.setTimeout(n)
- Only response timeouts are supported.
Version of node-fetch
that isomorphic-fetch
uses populates the Request.auth
property.
.auth(...)
becomes.setAuth(...)
auto
mode is not supported byfetch
(see this issue)
- only supported on node, browsers don't handle it well
- passing in a filename will not create the
fs.ReadStream
for you
fluentlyFetch.get('/upload')
.attach('file', '/path/to/file.txt')
would instead be
fluentlyFetch.get('/upload')
.attach('file', fs.createReadStream('/path/to/file.txt'))