DurbunHttpOverrides class
Installs DurbunHttpClient for every dart:io HttpClient() created on
this isolate, chaining whatever overrides were there before.
- Inheritance
-
- Object
- HttpOverrides
- DurbunHttpOverrides
Constructors
- DurbunHttpOverrides(HttpCaptureHost host, {HttpOverrides? previous})
-
Wraps every
HttpClientthe app creates (and thatpreviouswould create) and reports it tohost. Install it asHttpOverrides.global.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → HttpCaptureHost
-
Where the wrapped clients report their requests.
final
- previous → HttpOverrides?
-
The overrides that were current when this one was installed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
override
-
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
Static Properties
- currentGlobal → HttpOverrides?
-
The global overrides (what the root zone sees).
no setter
Static Methods
-
ensureInstalled(
HttpCaptureHost host) → bool -
Installs (or re-installs, when the app replaced them) the overrides for
host. Returns true when something changed. -
uncapturedClient(
) → HttpClient - A client Dürbün does not capture, for the in-app panel's own requests (Send to Slack: the webhook URL must not land in the request list). The app's own overrides (proxy, certificates) still apply.
-
uninstall(
HttpCaptureHost host) → void -
Removes our overrides for
host(restoring the previous ones).