Dart Documentationchrome.declarativeWebRequestRedirectRequest

RedirectRequest class

Declarative event action that redirects a network request.

class RedirectRequest extends ChromeObject {
 RedirectRequest({String redirectUrl}) {
   if (redirectUrl != null) this.redirectUrl = redirectUrl;
 }
 RedirectRequest.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Destination to where the request is redirected.
  */
 String get redirectUrl => jsProxy['redirectUrl'];
 set redirectUrl(String value) => jsProxy['redirectUrl'] = value;
}

Extends

ChromeObject > RedirectRequest

Constructors

new RedirectRequest({String redirectUrl}) #

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

docs inherited from ChromeObject
RedirectRequest({String redirectUrl}) {
 if (redirectUrl != null) this.redirectUrl = redirectUrl;
}

new RedirectRequest.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String redirectUrl #

Destination to where the request is redirected.

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