setRequestInterception method

  1. @Deprecated('use Fetch.enable instead')
Future<void> setRequestInterception(
  1. List<RequestPattern> patterns
)

Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead. patterns Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.

Implementation

@Deprecated('use Fetch.enable instead')
Future<void> setRequestInterception(List<RequestPattern> patterns) async {
  await _client.send('Network.setRequestInterception', {
    'patterns': [...patterns],
  });
}