Possibility to expose more of the Axios original http response?
See original GitHub issueThanks for this useful extensions, you guys rocks! 🤘
So I’ve been using this extension outside of official Hoppscotch web app. This extensions work wonderfully for working-around Browser’s AJAX CORS limitation, by routing HTTP request through this extension. However I found some limitation in terms of the exposed HTTP response data. My use case is to:
- Get the final URL of the response, after an HTTP request encountered HTTP redirect(s).
- I figure it will need
response.request.responseURL
from the original HTTP response of Axios. Which currently this extension does not expose.
I track it down into these lines, the extension currently return limited set of properties of the Axios’s original response object: https://github.com/hoppscotch/hoppscotch-extension/blob/427969d278ec969cc7091aabc4acaf716cfae643/src/index.ts#L153-L160
Any chance to add maybe something like this?
rawAxiosResponse: res
// or maybe:
responseUrl: res.request.responseURL
I know that this is your extension mainly tailored for your own web app, so if it is not possible that is completely understandable. I’ll probably just make my own fork and build an alternative extension. Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Closed via #42
I will still update this issue until the feature becomes live in the Chrome and Firefox extension stores.
Yes, make sense. I also considered that risk, so I better use a fork instead for my project. This whole issue is just notifying the upstream (this repo) about changes I made and if it may benefit the upstream. The final decision is still understandably upstream project owner’s to take, there is no wrong decision there, and no deadline/timeline involved, suit yourself. Cheers 😃