Dart Documentationchrome.webRequestChallengerWebRequest

ChallengerWebRequest class

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

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

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

Extends

ChromeObject > ChallengerWebRequest

Constructors

new ChallengerWebRequest({String host, int port}) #

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

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

new ChallengerWebRequest.fromProxy(JsObject jsProxy) #

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

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

Properties

String host #

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

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int port #

int get port => jsProxy['port'];
set port(int value) => jsProxy['port'] = 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();