streamResourceContent method
Enables streaming of the response for the given requestId.
If enabled, the dataReceived event contains the data that was received during streaming.
requestId
Identifier of the request to stream.
Returns: Data that has been buffered until streaming is enabled.
Implementation
Future<String> streamResourceContent(RequestId requestId) async {
var result = await _client.send('Network.streamResourceContent', {
'requestId': requestId,
});
return result['bufferedData'] as String;
}