You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,14 @@ You can pass in additional request headers, either individually or in a dictiona
247
247
248
248
````
249
249
250
+
### .option() and .options()
251
+
You can pass in additional request options, either individually or in a dictionay. Options can be [node specific](https://github.com/bitinn/node-fetch#options) or [from fetch standard](https://fetch.spec.whatwg.org/#requestinit)
252
+
```js
253
+
.option("someOptionName", "someOptionValue")
254
+
// or
255
+
.options({"someOptionName":"someOptionValue"})
256
+
```
257
+
250
258
### .responseType()
251
259
To set a custom response type, use the `.responseType(<ResponseType>)` method. Refer [ResponseType.ts](./src/ResponseType.ts) for available options.
0 commit comments