2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Merge pull request #828 from mzabriskie/feature/return-last-request-in-redirects

Return the last request made in axios response
This commit is contained in:
Nick Uraltsev
2017-04-08 11:26:05 -07:00
committed by GitHub
3 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -358,7 +358,12 @@ The response for a request contains the following information.
headers: {},
// `config` is the config that was provided to `axios` for the request
config: {}
config: {},
// `request` is the request that generated this response
// It is the last ClientRequest instance in node.js (in redirects)
// and an XMLHttpRequest instance the browser
request: {}
}
```