Skip to content

"Cancel" button should cancel the ongoing request #10458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Shamus03 opened this issue May 20, 2025 · 1 comment
Open

"Cancel" button should cancel the ongoing request #10458

Shamus03 opened this issue May 20, 2025 · 1 comment

Comments

@Shamus03
Copy link

Describe the solution you'd like

When a user hits the "Cancel" button while a request is in progress, I expect the ongoing request to be canceled. Instead the request continues in the background. This can be done easily with an AbortController that gets canceled upon clicking Cancel.

Describe alternatives you've considered

Perhaps it was an intentional decision not to cancel the requests. If so maybe this can at least be an optional setting?

@char0n
Copy link
Member

char0n commented May 27, 2025

Hi @Shamus03,

SwaggerUI request/response issuing is facilitated by swagger-client. In order to support your request, we'd have to provide AbortSignal instance while making a request in here. swagger-client supports it, here is the documentation how to achieve that: https://github.com/swagger-api/swagger-js/blob/master/docs/usage/http-client-for-oas-operations.md#request-cancellation-with-abortsignal.

PR is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants