Proxy.http constructor

Proxy.http({
  1. required String ip,
  2. required int port,
  3. String? countryCode,
  4. String? anonymityLevel,
  5. String? region,
  6. String? isp,
  7. double? speed,
  8. bool? supportsWebsockets,
  9. ProxyAuth? auth,
})

Creates a new Proxy with HTTP protocol

Implementation

factory Proxy.http({
  required String ip,
  required int port,
  String? countryCode,
  String? anonymityLevel,
  String? region,
  String? isp,
  double? speed,
  bool? supportsWebsockets,
  ProxyAuth? auth,
}) {
  return Proxy(
    ip: ip,
    port: port,
    countryCode: countryCode,
    isHttps: false,
    protocol: ProxyProtocol.http,
    anonymityLevel: anonymityLevel,
    region: region,
    isp: isp,
    speed: speed,
    supportsWebsockets: supportsWebsockets,
    auth: auth,
  );
}