Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ https://fetch.spec.whatwg.org/

Implements [fetch](https://fetch.spec.whatwg.org/).

Only supported on Node 16+.

This is [experimental](https://nodejs.org/api/documentation.html#documentation_stability_index) and is not yet fully compliant the Fetch Standard. We plan to ship breaking changes to this feature until it is out of experimental.

Arguments:
Expand Down
29 changes: 2 additions & 27 deletions docs/api/Dispatcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,36 +307,11 @@ client.dispatch({

### `Dispatcher.fetch(options)`

Performs a HTTP request.

Implements [fetch](https://fetch.spec.whatwg.org/).

This is [experimental](https://nodejs.org/api/documentation.html#documentation_stability_index) and is not yet fully compliant the Fetch Standard. We plan to ship breaking changes to this feature until it is out of experimental.

Arguments:

* **options** `FetchOptions`

Returns: `Promise<FetchResponse>`
Only supported on Node 16+.

#### Parameter: `FetchOptions`

Extends: [`DispatchOptions`](#parameter-dispatchoptions)

**headers** `HeadersInit`
**body** `BodyInit?`
**keepalive** `boolean`
**signal** `AbortSignal?`

#### Parameter: `FetchResponse`

* **type** `ResponseType`
* **url** `string`
* **redirected** `boolean`
* **status** `number`
* **ok** `boolean`
* **statusText** `string` Always empty string.
* **headers** `Headers`
This is [experimental](https://nodejs.org/api/documentation.html#documentation_stability_index) and is not yet fully compliant the Fetch Standard. We plan to ship breaking changes to this feature until it is out of experimental.

### `Dispatcher.pipeline(options, handler)`

Expand Down
Loading