cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Endpoints

Synopsis

Documentation

type URL = Text Source #

data SomeEndpoint where Source #

Constructors

SomeEndpoint :: Endpoint ep => ep -> SomeEndpoint 

fromSomeEndpoint :: (forall ep. Endpoint ep => ep -> r) -> SomeEndpoint -> r Source #

endpoint :: Endpoint ep => Config -> ep -> IO (EndpointResponse ep) Source #

Sends a request with the given parameters to the corresponding endpoint

connectToTab :: Config -> URL -> IO TargetInfo Source #

Creates a session with a new tab

class Endpoint ep where Source #

Associated Types

type EndpointResponse ep :: * Source #

Instances

Instances details
Endpoint EPFrontend Source # 
Instance details

Defined in CDP.Endpoints

Associated Types

type EndpointResponse EPFrontend Source #

Endpoint EPCloseTarget Source # 
Instance details

Defined in CDP.Endpoints

Associated Types

type EndpointResponse EPCloseTarget Source #

Endpoint EPActivateTarget Source # 
Instance details

Defined in CDP.Endpoints

Endpoint EPOpenNewTab Source # 
Instance details

Defined in CDP.Endpoints

Associated Types

type EndpointResponse EPOpenNewTab Source #

Endpoint EPCurrentProtocol Source # 
Instance details

Defined in CDP.Endpoints

Endpoint EPAllTargets Source # 
Instance details

Defined in CDP.Endpoints

Associated Types

type EndpointResponse EPAllTargets Source #

Endpoint EPBrowserVersion Source # 
Instance details

Defined in CDP.Endpoints

data TargetInfo Source #

Instances

Instances details
Show TargetInfo Source # 
Instance details

Defined in CDP.Endpoints

FromJSON TargetInfo Source # 
Instance details

Defined in CDP.Endpoints