getResourceContent method

Future<GetResourceContentResult> getResourceContent(
  1. FrameId frameId,
  2. String url
)

Returns content of the given resource. frameId Frame id to get resource for. url URL of the resource to get content for.

Implementation

Future<GetResourceContentResult> getResourceContent(
    FrameId frameId, String url) async {
  var result = await _client.send('Page.getResourceContent', {
    'frameId': frameId,
    'url': url,
  });
  return GetResourceContentResult.fromJson(result);
}