HttpConnectorWithCachedAddresses class
An HTTP override class for using cached address resolution in HTTP clients.
Extends HttpOverrides to provide custom socket connection logic.
- Inheritance
-
- Object
- HttpOverrides
- HttpConnectorWithCachedAddresses
Constructors
- HttpConnectorWithCachedAddresses({bool onBadCertificate(X509Certificate certificate)?})
- Creates an instance of HttpConnectorWithCachedAddresses.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBadCertificate → bool Function(X509Certificate certificate)?
-
A callback for handling invalid certificates in secure connections.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectionFactory(
dynamic uri, String? proxyHost, int? proxyPort, SecurityContext? context) → Future< ConnectionTask< Socket> > - Custom connection factory for creating socket connections.
-
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
-
register(
) → void - Registers this override as the global HTTP override.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited