enable method
Enables issuing of requestPaused events. A request will be paused until client
calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
patterns
If specified, only requests matching any of these patterns will produce
fetchRequested event and will be paused until clients response. If not set,
all requests will be affected.
handleAuthRequests
If true, authRequired events will be issued and requests will be paused
expecting a call to continueWithAuth.
Implementation
Future<void> enable(
{List<RequestPattern>? patterns, bool? handleAuthRequests}) async {
await _client.send('Fetch.enable', {
if (patterns != null) 'patterns': [...patterns],
if (handleAuthRequests != null) 'handleAuthRequests': handleAuthRequests,
});
}