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
i think kemal should allow middleware to transform responses from routes in addition to transforming requests. it would add a fair bit of power to be able to throw a specific exception in a route and have a middleware catch that exception and return a certain error page
usecases:
validate in the route, throw a ValidationError, which the middleware catches and responds with an HTTP 400
transform the response body with additional content or processing
move certain common processing from routes to middleware
The text was updated successfully, but these errors were encountered:
description
i think kemal should allow middleware to transform responses from routes in addition to transforming requests. it would add a fair bit of power to be able to throw a specific exception in a route and have a middleware catch that exception and return a certain error page
usecases:
ValidationError
, which the middleware catches and responds with an HTTP 400The text was updated successfully, but these errors were encountered: