TracedHttpOverrides class
HttpOverrides that returns a TracedHttpClient for every
createHttpClient call. Install once at process start:
HttpOverrides.global = TracedHttpOverrides();
The optional nameFor callback lets callers customize the
human-readable label that shows up in the inspector timeline
(default: "<METHOD> <path>").
- Inheritance
-
- Object
- HttpOverrides
- TracedHttpOverrides
Constructors
- TracedHttpOverrides({String nameFor(String method, Uri url)?})
Properties
Methods
-
createHttpClient(
SecurityContext? context) → HttpClient -
Returns a new HttpClient using the given
context.override -
findProxyFromEnvironment(
Uri url, Map< String, String> ? environment) → String -
Resolves the proxy server to be used for HTTP connections.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited