Open
Description
Dart provides us with possibility to add proxy for HTTP/HTTPS requests.
To do that, developers advised to implement one of the methods:
Line 1776 in d63d5d9
Line 1829 in d63d5d9
Also in documentation:
https://api.dart.dev/stable/2.10.5/dart-io/HttpClient/findProxy.html
https://api.flutter.dev/flutter/dart-io/HttpClient/findProxyFromEnvironment.html
Unfortunately all the options are synchronous. And at the same time proxy configuration could be way more complex than just host
and port
stored in environment variables. There could be excluded urls
or Auto Proxy configuration
, which will require async calls.