getHAR method

Future<Map> getHAR()

Returns HAR log that contains all known network requests. returns A function that receives the HAR log when the request completes.

Implementation

Future<Map> getHAR() {
  var $completer = Completer<Map>();
  $js.chrome.devtools.network.getHAR((JSAny harLog) {
    if (checkRuntimeLastError($completer)) {
      $completer.complete(harLog.toDartMap());
    }
  }.toJS);
  return $completer.future;
}