Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 committed May 23, 2023
1 parent 98c5481 commit 951c0c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ This library offers a fetch wrapper that can:
- automatically add `Content-Type` header
- directly use objects for `body` as json (see below)
- send `form`, `formData`, `qs` (query string) easily from objects
- accept a timeout option and abort when timeout is reached
- accept a `timeout` option and abort when timeout is reached
- accept a `retry` option and retry the request when it throws
- accept a `retryDelay` option to wait before retrying. it can be a function.
- add `Accept` header with value `application/json, text/plain, */*` if not already set by you
- set global headers when creating the wrapper
- set a `baseURL` when creating the wrapper
Expand All @@ -18,7 +20,7 @@ This library offers a fetch wrapper that can:
you can import `wrapFetch` from `mod.ts` file.

```ts
export { wrapFetch } from 'https://deno.land/x/fetch_goody@v6.1.0/mod.ts';
export { wrapFetch } from 'https://deno.land/x/fetch_goody@v6.2.0/mod.ts';
```

### wrapFetch
Expand Down

0 comments on commit 951c0c5

Please sign in to comment.