Changed how hooks work.
Hooks and handler callbacks need now two parameters: request and response.
This makes it easier to update those objects inside hooks and provide a simpler UX,
as you don't need to create a GazelleResponse inside your handlers, you only need
to call response.copyWith().
Changed how hooks work. Hooks and handler callbacks need now two parameters: request and response. This makes it easier to update those objects inside hooks and provide a simpler UX, as you don't need to create a
GazelleResponse
inside your handlers, you only need to callresponse.copyWith()
.