Skip to content

Expose HTTPStateSource methods #350

@KeKs0r

Description

@KeKs0r

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions