runWithHttpOverrides<R> method

R runWithHttpOverrides <R>(
  1. R body( ),
  2. HttpOverrides overrides
)

Runs body in a fresh Zone using the overrides found in overrides.

Note that overrides should be an instance of a class that extends HttpOverrides.

Implementation

static R runWithHttpOverrides<R>(R body(), HttpOverrides overrides) {
  return _asyncRunZoned<R>(body,
      zoneValues: {_httpOverridesToken: overrides});
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/HttpOverrides/runWithHttpOverrides.html