Contents

CFNetworkExecuteProxyAutoConfigurationURL(_:_:_:_:)

Downloads a proxy autoconfiguration script and executes it.

Declaration

func CFNetworkExecuteProxyAutoConfigurationURL(_ proxyAutoConfigURL: CFURL, _ targetURL: CFURL, _ cb: CFProxyAutoConfigurationResultCallback, _ clientContext: UnsafeMutablePointer<CFStreamClientContext>) -> CFRunLoopSource

Parameters

  • proxyAutoConfigURL:

    The URL of the autoconfiguration script.

  • targetURL:

    The URL that your application intends to eventually download using the proxies.

  • cb:

    A callback to be called when execution of the script is finished.

  • clientContext:

    A stream context containing a client info object and optionally retain and release callbacks for that object.

Discussion

This function returns a run loop source that the caller should schedule. Once downloading and execution of the script has completed, the specified callback function is called.

See Also

Global Proxy Configuration