on Response Ready
abstract fun onResponseReady(request: RecordedRequest, response: AbstractResponseDefinition<*>)(source)
Called when a matched stub is about to send its response.
The listener fires after response headers and status have been applied, but before the response body is written.
Parameters
request
The recorded incoming request.
response
The response definition that will be sent.