WebProxyCarrier constructor

const WebProxyCarrier({
  1. required int id,
  2. required int proxyId,
  3. required String url,
  4. required String origin,
  5. required String pathPrefix,
  6. required String bridgeObjectName,
  7. required bool isTemporary,
})

Describes a web proxy carrier: an HTTPS relay page, which carries traffic of a web proxy and must be loaded by the application as the top-level document of a hidden web view. Before loading the page, the application must arrange for an object named carrier.bridge_object_name to be defined in the top-level document whenever its origin is exactly carrier.origin, and in no other document or frame. The object must be read-only and must have two members: a method postMessage(value), which passes an ArrayBuffer or a typed array to processWebProxyCarrierMessage as webProxyCarrierMessageBinary, passes a string as webProxyCarrierMessageText, and rejects any other value; and a property onmessage, which the page sets to a function. The application delivers data to the page by calling that function with an object {data: value}, where value is an ArrayBuffer for binary data and a string for text. Each carrier needs its own web view

Implementation

const WebProxyCarrier({
  required this.id,
  required this.proxyId,
  required this.url,
  required this.origin,
  required this.pathPrefix,
  required this.bridgeObjectName,
  required this.isTemporary,
});