Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nason committed May 21, 2017
1 parent 60ef183 commit 197986c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -144,7 +144,7 @@ It must be one of the strings `GET`, `HEAD`, `POST`, `PUT`, `PATCH`, `DELETE` or

The body of the API call.

`redux-api-middleware` uses the [`Fetch API`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to make the API call. `[RSAA].body` should hence be a valid body according to the the [fetch specification](https://fetch.spec.whatwg.org). In most cases, this will be a JSON-encoded string or a [`FormData`](https://developer.mozilla.org/en/docs/Web/API/FormData) object.
`redux-api-middleware` uses the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to make the API call. `[RSAA].body` should hence be a valid body according to the [fetch specification](https://fetch.spec.whatwg.org). In most cases, this will be a JSON-encoded string or a [`FormData`](https://developer.mozilla.org/en/docs/Web/API/FormData) object.

#### `[RSAA].headers`

Expand All @@ -166,7 +166,7 @@ It may also be a function taking the state of your Redux store as its argument,

#### `[RSAA].options`

The fetch options for the API call. See [node-fetch](https://github.com/bitinn/node-fetch#options) for more information.
The fetch options for the API call. See [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for more information.

It is usually an object with the options keys/values. For example, you can specify a network timeout for node.js code
in the following way.
Expand Down Expand Up @@ -586,7 +586,7 @@ The optional `[RSAA].headers` property MUST be a plain JavaScript object or a fu
#### `[RSAA].options`

The optional `[RSAA].options` property MUST be a plain JavaScript object or a function. In the second case, the function SHOULD return a plain JavaScript object.
The options object can contain any options supported by [node-fetch](https://github.com/bitinn/node-fetch#options).
The options object can contain any options supported by the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).

#### `[RSAA].credentials`

Expand Down

0 comments on commit 197986c

Please sign in to comment.