Is there a way to handle cancelled requests #4408
-
I am making requests to my AdonisJs api from a Flutter application using dio and one of dio's features is the ability to cancel a request. After some tests I noticed that request cancellations done by the client has no effect on the api since it had already received the requests. So I am wondering if it's possible to handle cancelled requests. I'm using V5. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @hbatalhaStch does the cancellation send back any information to the backend? It does something to notify the server you should be able to handle that |
Beta Was this translation helpful? Give feedback.
-
from source code seems that |
Beta Was this translation helpful? Give feedback.
from source code seems that
ctx.request.request
is instance of incoming request@hbatalhaStch