| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Data.WebProxyCarrier
Documentation
data WebProxyCarrier Source #
Constructors
| WebProxyCarrier | 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 |
Fields
| |
Instances
| FromJSON WebProxyCarrier Source # | |
Defined in TD.Data.WebProxyCarrier Methods parseJSON :: Value -> Parser WebProxyCarrier # parseJSONList :: Value -> Parser [WebProxyCarrier] # | |
| Show WebProxyCarrier Source # | |
Defined in TD.Data.WebProxyCarrier Methods showsPrec :: Int -> WebProxyCarrier -> ShowS # show :: WebProxyCarrier -> String # showList :: [WebProxyCarrier] -> ShowS # | |
| Eq WebProxyCarrier Source # | |
Defined in TD.Data.WebProxyCarrier Methods (==) :: WebProxyCarrier -> WebProxyCarrier -> Bool # (/=) :: WebProxyCarrier -> WebProxyCarrier -> Bool # | |
| ShortShow WebProxyCarrier Source # | |
Defined in TD.Data.WebProxyCarrier Methods shortShow :: WebProxyCarrier -> String Source # | |