developit / developit/redaxios

Does redaxios support adaptor?

Open
#98 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.9k
Forks
104
PR merge metrics
No merged PRs in 30d

Description

In iOS, POST body might be abandoned by the WKWebView. So in my project, we expose an different method for sending POST request. With axios, we can use adaptor to replace xhr in iOS. Does redaxios support the same feature?

```js
{
// `adapter` allows custom handling of requests which makes testing easier.
// Return a promise and supply a valid response (see lib/adapters/README.md).
adapter: function (config) {
/* ... */
},
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.