---
title: CFProxyAutoConfigurationResultCallback
framework: cfnetwork
role: symbol
role_heading: Type Alias
path: cfnetwork/cfproxyautoconfigurationresultcallback
---

# CFProxyAutoConfigurationResultCallback

Callback function called when a proxy autoconfiguration computation has completed.

## Declaration

```swift
typealias CFProxyAutoConfigurationResultCallback = (UnsafeMutableRawPointer, CFArray, CFError?) -> Void
```

## Parameters

- `client`: The client reference originally passed in the clientContext parameter of the CFNetworkExecuteProxyAutoConfigurationScript or CFNetworkExecuteProxyAutoConfigurationURL call that triggered this callback.
- `proxyList`: The list of proxies returned by the autoconfiguration script. This list is in a format suitable for passing to CFProxyCopyProxiesForURL (with the added guarantee that no entries will ever be autoconfiguration URL entries). If an error occurs, this value will be NULL. note: If you want to keep this list, you must retain it when your callback receives it.
- `error`: An error object that indicates any error that may have occurred. If no error occurred, this value will be NULL.

## See Also

### Global Proxy Configuration

- [CFNetworkCopyProxiesForURL(_:_:)](cfnetwork/cfnetworkcopyproxiesforurl(_:_:).md)
- [CFNetworkCopyProxiesForAutoConfigurationScript(_:_:_:)](cfnetwork/cfnetworkcopyproxiesforautoconfigurationscript(_:_:_:).md)
- [CFNetworkExecuteProxyAutoConfigurationScript(_:_:_:_:)](cfnetwork/cfnetworkexecuteproxyautoconfigurationscript(_:_:_:_:).md)
- [CFNetworkExecuteProxyAutoConfigurationURL(_:_:_:_:)](cfnetwork/cfnetworkexecuteproxyautoconfigurationurl(_:_:_:_:).md)
- [CFNetworkCopySystemProxySettings()](cfnetwork/cfnetworkcopysystemproxysettings().md)
- [Property Keys](cfnetwork/property-keys.md)
- [Proxy Types](cfnetwork/proxy-types.md)
- [Global Proxy Settings Constants](cfnetwork/global-proxy-settings-constants.md)
