failRequest method
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,
});
}