Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,18 @@ private boolean isPlayingBack() {
public String getRecordingFileLocation() {
return xRecordingFileLocation;
}

/**
* Redirects the provided {@link HttpRequest} to the test proxy to retrieve the playback response.
* This method is invoked during playback mode to simulate the expected response for a request.
*
* @param request The {@link HttpRequest} to be sent.
* @param context The {@link Context} associated with the operation.
* @return A {@link Mono} of {@link HttpResponse} containing the playback response.
*/
@Override
public Mono<HttpResponse> send(HttpRequest request, Context context) {
beforeSendingRequest(request);
return client.send(request, context).map(this::afterReceivedResponse);
}
}
Loading