You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote useProxy method in this extension for set proxy to the http client adapter for dio. It works on android and iOS.
But in the web browser, how can I do this with BrowserHttpClientAdapter ?
/// Methods for managing proxies on [Dio]extensionProxyXonDio {
/// Use a proxy to connect to the internet. /// /// If [proxyUrl] is a non-empty, non-null String, connect to the proxy server. /// /// If [proxyUrl] is empty or `null`, does nothing.voiduseProxy(String? proxyUrl) {
if (proxyUrl !=null&& proxyUrl.isNotEmpty) {
if (httpClientAdapter isIOHttpClientAdapter) {
(httpClientAdapter asIOHttpClientAdapter).onHttpClientCreate =
(client) => client
..findProxy = (url) {
return'PROXY $proxyUrl';
};
}
} else {
httpClientAdapter =getDioHTTPClientAdapter();
}
}
}
Solution Brainstorm
No response
The text was updated successfully, but these errors were encountered:
Request Statement
I wrote useProxy method in this extension for set proxy to the http client adapter for dio. It works on android and iOS.
But in the web browser, how can I do this with BrowserHttpClientAdapter ?
Solution Brainstorm
No response
The text was updated successfully, but these errors were encountered: