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
Is there a way to fire an event like with "onRequest", but with both the request and response objects? Basically, something like "onResponse".
I would like to log each response from the server. It would be nice for simple logging, something like: GET / 200 2ms
The text was updated successfully, but these errors were encountered:
@SaltyAom Thank you! However, the onAfterHandle function only fires on successful responses. For instance, if the route is not found, or the body is invalid, or an error is thrown, it is not fired. How can I listen to both successful and non-successful requests? This is why I suggested onResponse.
Based on the drawing, I would suggest the following:
Is there a way to fire an event like with "onRequest", but with both the request and response objects? Basically, something like "onResponse".
I would like to log each response from the server. It would be nice for simple logging, something like:
GET / 200 2ms
The text was updated successfully, but these errors were encountered: