This PR attempts to simplify the debugging helpers we previously had by making them a small wrapper around our middleware system. Now, when you want to debug a request or a response, you can simplify call the debugRequest or debugResponse method and provide it a callable.
This callable will be provided a PendingRequest and PSR-7 request if you're using debugRequest .
This PR attempts to simplify the debugging helpers we previously had by making them a small wrapper around our middleware system. Now, when you want to debug a request or a response, you can simplify call the
debugRequest
ordebugResponse
method and provide it a callable.This callable will be provided a PendingRequest and PSR-7 request if you're using
debugRequest
.This callable will be provided a Response and PSR-7 response if you're using
debugResponse
.