http library

package:http integration for native_proxy_resolver.

import 'package:native_proxy_resolver/http.dart';

final client = createSystemProxyHttpClient();
final response = await client.get(Uri.parse('https://example.com'));

Classes

ProxyAwareHttpClient
An HttpClient that routes every request through the proxy the operating system chooses for its URL (including PAC / WPAD).

Functions

createSystemProxyHttpClient({HttpClient? inner, SystemProxyResolver? resolver, String fallback = 'DIRECT', bool preResolve = true}) → Client
Creates a package:http http.Client whose requests are routed through the operating system's proxy for each URL (PAC / WPAD included).