Skip to content

Support upload/download progress handlers #1084

Open
@jgoz

Description

@jgoz

It would be great if the axios and xhr handlers supported per-request upload/download progress handlers. This is supported in the official openapi-generator package via client-specifc options that can be passed through to each request.

I'm not sure what would be the easiest path to support these handlers in this project. Fetch, Node, and Angular don't support progress callbacks, so maybe the quickest path would be to follow openapi-generator and accept optional request overrides on each request. These could even be opt-in via CLI arguments.

E.g.,

myService.uploadFile(fileBlob, {
  onUploadProgress: (progress) => {},
  // ... other client-specific request options
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions