setAuthenticateProxy method

  1. @override
void setAuthenticateProxy(
  1. Future<bool> f(
    1. String host,
    2. int port,
    3. String scheme,
    4. String? realm,
    )?
)
override

Sets the function to be called when a proxy is requesting authentication.

Delegates to HttpClient.authenticateProxy. Also available with WebDavStdClient.authenticated; use addProxyCredentials to supply proxy credentials from this callback.

Implementation

@override
void setAuthenticateProxy(
  Future<bool> Function(String host, int port, String scheme, String? realm)?
  f,
) {
  client.authenticateProxy = f;
}