#Access response object in pipe

3 messages · Page 1 of 1 (latest)

dense dagger
#

Is there any way to access the response or request object in a pipe? I want to attach error codes to request context to log it in access logs, etc.

nova sonnet
#

You could inject the Request by making the pipe REQUEST scoped, but I don't recommend that

#

To atach error information, you could atach the info to the error you're about to throw, then parse it out n a filter