Trigger functions to run on requests and/or responses. See Details for more.
Details
Functions passed to request are run before the request occurs. The meaning of triggering a function on the request is that you can do things to the request object.
Functions passed to response are run once the request is done, and the response object is created. The meaning of triggering a function on the response is to do things on the response object.
The above for request and response applies the same whether you make real HTTP requests or mock with webmockr.