We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84f161 commit bee466bCopy full SHA for bee466b
1 file changed
README.md
@@ -222,13 +222,26 @@ Commands:
222
state.webSettings.customUserAgentString = "MyApp/1.2.3"
223
```
224
225
-Desktop note:
+
226
227
+### Proxy (desktop only)
228
229
+```kotlin
230
+// HTTP CONNECT Proxy
231
+state.webSettings.desktopWebSettings.proxyConfig = ProxyConfig.Http("proxy.tld", 8888)
232
+// SOCKS5 Proxy
233
+state.webSettings.desktopWebSettings.proxyConfig = ProxyConfig.Socks5("proxy.tld", 1080)
234
+```
235
236
+Proxy is only supported on Windows, macOS 14.0+ and Linux.
237
238
+Desktop note on both user-agent and proxy:
239
240
* applied at creation time
241
* changing it **recreates** the WebView (debounced)
242
* JS context/history may be lost
243
-👉 Set it early.
244
+👉 Set them early.
245
246
---
247
0 commit comments