getProxyUrl function

String? getProxyUrl([
  1. EnvLike? env
])

Get the active proxy URL if one is configured. Prefers lowercase variants over uppercase.

Implementation

String? getProxyUrl([EnvLike? env]) {
  final e = env ?? Platform.environment;
  return e['https_proxy'] ??
      e['HTTPS_PROXY'] ??
      e['http_proxy'] ??
      e['HTTP_PROXY'];
}