You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always need to get data from the response header, but the current automaFetch is not possible to achieve this. It only accepts text and json and handles the response body underhood.
Solution
I want the automaFetch could have a new type response which makes it return the original web standard Response object.
Alternative
For APIs we have control, we need to negotiate with other developers to change the behavior of endpoints.
For APIs we don't have control, it's not possible to resolve the problem. ( fetch is not a choice because of CORS )
Additional
I think it's necessary not only on this scene, but also when the response is an octo stream.