Hooks
This is the last hook that is ran before the response is sent to the client, running after the response has been validated.
Most of the time, Zeta is capable of automatically build the Response object for you based on the value returned by the handler and it's content type. However, if you come across a situation where Zeta does not support the content type you need, use this hook to build the response manually.
;
;
In this example, we are converting a Sharp instance (class storing image modifications) to a response.