Skip to content

Commit

Permalink
docs: createRequest options
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed May 14, 2024
1 parent 22f0202 commit abf65f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ const body = await customRequest.get("http://test.com");

> The gloabl request instance is created by `request.create()` too.
option | description
:----------------|:---------------
initMiddlewares | `fetch`, `retry`, `flowController` are all implemented by middleware. you can customize the init middlewares to change behavior.
baseOrigin | When sending a request without an `origin`, `origin` will set to `window.location.origin` in the browser and `"http://127.0.0.1"` in NodeJS.

<!-- usage -->

<!-- addition -->
Expand Down

0 comments on commit abf65f3

Please sign in to comment.