Runs body
in a fresh Zone using the provided overrides.
static R runZoned<R>(R body(), {HttpClient Function(SecurityContext) createHttpClient, String Function(Uri uri, Map<String, String> environment) findProxyFromEnvironment, ZoneSpecification zoneSpecification, Function onError}) { HttpOverrides overrides = new _HttpOverridesScope(createHttpClient, findProxyFromEnvironment); return _asyncRunZoned<R>(body, zoneValues: {_httpOverridesToken: overrides}, zoneSpecification: zoneSpecification, onError: onError); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/HttpOverrides/runZoned.html