-
-
Notifications
You must be signed in to change notification settings - Fork 429
Add ability to set response attributes on a per-route basis #1354
Comments
My knee-jerk reaction here would be something along the lines of the second option above, where we have a new module-level export in the component, which is passed the |
Being able to affect the request and response before/after render would be a powerful tool. Might be good to provide a single "around" hook to this effect, or maybe just two different hooks: "before" and "after". Though I think "around" would be better. |
How about allowing this in
or potentially just exposing the entire response, though I think that might be exposing a bit much. What is the use case for doing something to request/response after the request? |
One example @ajbouh gave elsewhere was timing how long |
There's a desire to set certain response attributes on a per-route basis. E.g. the
Cache-Control
header, other headers, response type, etc.A few ideas:
The text was updated successfully, but these errors were encountered: