Module

Payload.Client

Package
purescript-payload
Repository
hoodunit/purescript-payload

#mkClient Source

mkClient :: forall client routesSpec. ClientApi routesSpec client => Options -> Spec routesSpec -> client

#mkClient_ Source

mkClient_ :: forall client routesSpec. ClientApi routesSpec client => Spec routesSpec -> client

#mkGuardedClient Source

mkGuardedClient :: forall r client routesSpec. ClientApi routesSpec client => Options -> Spec { routes :: routesSpec | r } -> client

#mkGuardedClient_ Source

mkGuardedClient_ :: forall r client routesSpec. ClientApi routesSpec client => Spec { routes :: routesSpec | r } -> client

Re-exports from Payload.Client.Options

#RequestOptions Source

type RequestOptions = { extraHeaders :: Headers }

#Options Source

type Options = { baseUrl :: String, extraHeaders :: Headers, logLevel :: LogLevel }

Re-exports from Payload.Client.Response

#ClientResponse Source

#ClientError Source

data ClientError

Constructors

Instances

#unwrapResponse Source

#unwrapBody Source

unwrapBody :: forall a. Aff (ClientResponse a) -> Aff a