Dart Documentationchrome.proxyProxyServer

ProxyServer class

An object encapsulating a single proxy server's specification.

class ProxyServer extends ChromeObject {
 ProxyServer({String scheme, String host, int port}) {
   if (scheme != null) this.scheme = scheme;
   if (host != null) this.host = host;
   if (port != null) this.port = port;
 }
 ProxyServer.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The scheme (protocol) of the proxy server itself. Defaults to 'http'.
  * enum of `http`, `https`, `socks4`, `socks5`
  */
 String get scheme => this.jsProxy['scheme'];
 set scheme(String value) => this.jsProxy['scheme'] = value;

 /**
  * The URI of the proxy server. This must be an ASCII hostname (in Punycode
  * format). IDNA is not supported, yet.
  */
 String get host => this.jsProxy['host'];
 set host(String value) => this.jsProxy['host'] = value;

 /**
  * The port of the proxy server. Defaults to a port that depends on the
  * scheme.
  */
 int get port => this.jsProxy['port'];
 set port(int value) => this.jsProxy['port'] = value;
}

Extends

ChromeObject > ProxyServer

Constructors

new ProxyServer({String scheme, String host, int port}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
ProxyServer({String scheme, String host, int port}) {
 if (scheme != null) this.scheme = scheme;
 if (host != null) this.host = host;
 if (port != null) this.port = port;
}

new ProxyServer.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
ProxyServer.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

String host #

The URI of the proxy server. This must be an ASCII hostname (in Punycode format). IDNA is not supported, yet.

String get host => this.jsProxy['host'];
set host(String value) => this.jsProxy['host'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int port #

The port of the proxy server. Defaults to a port that depends on the scheme.

int get port => this.jsProxy['port'];
set port(int value) => this.jsProxy['port'] = value;

String scheme #

The scheme (protocol) of the proxy server itself. Defaults to 'http'. enum of http, https, socks4, socks5

String get scheme => this.jsProxy['scheme'];
set scheme(String value) => this.jsProxy['scheme'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();