proxy property

SentryProxy? proxy
getter/setter pair

Configure a proxy to use for SDK API calls.

On io platforms without native SDKs (dart, linux, windows), this will use an 'IOClient' with inner 'HTTPClient' for http communication. A http proxy will be set in returned for 'HttpClient.findProxy' in the form 'PROXY <your_host>:<your_port>'. When setting 'user' and 'pass', the 'HttpClient.addProxyCredentials' method will be called with empty 'realm'.

On Android & iOS, the proxy settings are handled by the native SDK. iOS only supports http proxies, while macOS also supports socks.

Implementation

SentryProxy? proxy;