onRequestIntercepted property

Stream<RequestInterceptedEvent> get onRequestIntercepted

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

Implementation

Stream<RequestInterceptedEvent> get onRequestIntercepted => _client.onEvent
    .where((event) => event.name == 'Network.requestIntercepted')
    .map((event) => RequestInterceptedEvent.fromJson(event.parameters));