mirror of https://github.com/sundowndev/http.git
added responseInterceptor example
parent
148f8b8e73
commit
9dd5de3329
|
@ -147,6 +147,13 @@ requestInterceptor: (config, { store }) => {
|
|||
### `responseInterceptor`
|
||||
- Default: `null`
|
||||
|
||||
```js
|
||||
responseInterceptor: (response, ctx) => {
|
||||
return response
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Function for manipulating axios responses.
|
||||
|
||||
### `init`
|
||||
|
@ -291,4 +298,4 @@ Details
|
|||
|
||||
[MIT License](./LICENSE)
|
||||
|
||||
Copyright (c) 2017 Nuxt Community
|
||||
Copyright (c) 2017 Nuxt Community
|
||||
|
|
Loading…
Reference in New Issue