replay method

Future<void> replay(
  1. NetLensHttpCall call,
  2. NetLensReplayRequest request
)

Sends request, which was built from call, again with the client which made call. The new call is caught like any other call.

Implementation

Future<void> replay(NetLensHttpCall call, NetLensReplayRequest request) {
  final NetLensCallReplayer? replayer = getReplayer(call);
  if (replayer == null) {
    throw StateError('No adapter can replay calls of ${call.client}.');
  }
  return replayer.replay(request);
}