failRequest method

Future<void> failRequest(
  1. RequestId requestId,
  2. ErrorReason errorReason
)

Causes the request to fail with specified reason. requestId An id the client received in requestPaused event. errorReason Causes the request to fail with the given reason.

Implementation

Future<void> failRequest(
    RequestId requestId, network.ErrorReason errorReason) async {
  await _client.send('Fetch.failRequest', {
    'requestId': requestId,
    'errorReason': errorReason,
  });
}