okapi-0.2.0.0: A bidirectional HTTP description language
Safe HaskellNone
LanguageGHC2024

Okapi.Mode.Client

Documentation

data ClientError Source #

Constructors

ClientError 

Instances

Instances details
Show ClientError Source # 
Instance details

Defined in Okapi.Mode.Client

Eq ClientError Source # 
Instance details

Defined in Okapi.Mode.Client

data Client shape where Source #

Constructors

Cb :: forall method path query headers body result. (Request method path query headers body -> IO (Either ClientError result)) -> Client (Shape method path query headers body result) 

Instances

Instances details
GClient (S1 sm (Rec0 (Forest (Shape method path query headers body result)))) (S1 sm' (Rec0 (Client (Shape method path query headers body result)))) Source # 
Instance details

Defined in Okapi.Mode.Client

Methods

gClient :: ClientSettings -> S1 sm (Rec0 (Forest (Shape method path query headers body result))) () -> S1 sm' (Rec0 (Client (Shape method path query headers body result))) ()

fetch :: Manager -> String -> Forest (Shape method path query headers body result) -> Request method path query headers body -> IO (Either ClientError result) Source #

class GClient (epF :: Type -> Type) (clF :: Type -> Type) Source #

Minimal complete definition

gClient

Instances

Instances details
(GClient epL clL, GClient epR clR) => GClient (epL :*: epR) (clL :*: clR) Source # 
Instance details

Defined in Okapi.Mode.Client

Methods

gClient :: ClientSettings -> (epL :*: epR) () -> (clL :*: clR) ()

GClient epF clF => GClient (C1 cm epF) (C1 cm' clF) Source # 
Instance details

Defined in Okapi.Mode.Client

Methods

gClient :: ClientSettings -> C1 cm epF () -> C1 cm' clF ()

GClient epF clF => GClient (D1 dm epF) (D1 dm' clF) Source # 
Instance details

Defined in Okapi.Mode.Client

Methods

gClient :: ClientSettings -> D1 dm epF () -> D1 dm' clF ()

GClient (S1 sm (Rec0 (Forest (Shape method path query headers body result)))) (S1 sm' (Rec0 (Client (Shape method path query headers body result)))) Source # 
Instance details

Defined in Okapi.Mode.Client

Methods

gClient :: ClientSettings -> S1 sm (Rec0 (Forest (Shape method path query headers body result))) () -> S1 sm' (Rec0 (Client (Shape method path query headers body result))) ()

client :: (Generic (server Forest), Generic (server Client), GClient (Rep (server Forest)) (Rep (server Client))) => server Forest -> ClientSettings -> server Client Source #