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 am currently implementing some funcionality for file uploads on top of the HTTP Source. I need to use xhr for getting the progress for the upload.
I wanted to add a functionality that uses xhr instead of fetch, but is still able to use my hooks. Since most of them only set headers anyways this should not be very complicated. The issue I ran into, is that most of the hook and also options manipulation (e.g. for basePath) are not accessible. How would you feel about manually invoking beforeReq, afterReq and getRequestOptions?
The text was updated successfully, but these errors were encountered:
That would be fine with me as well. Although I am not 100% sure I could modify fetch in a way that it would work, but it is worth an approach. I don't like the usage of native fetch in general, so being able to overwrite it would be an added bonus for every other use case as well 👍
Hi,
I am currently implementing some funcionality for file uploads on top of the HTTP Source. I need to use xhr for getting the progress for the upload.
I wanted to add a functionality that uses xhr instead of fetch, but is still able to use my hooks. Since most of them only set headers anyways this should not be very complicated. The issue I ran into, is that most of the hook and also options manipulation (e.g. for basePath) are not accessible. How would you feel about manually invoking beforeReq, afterReq and getRequestOptions?
The text was updated successfully, but these errors were encountered: