Module
Presto.Core.Types.API
- Package
- purescript-presto
- Repository
- juspay/purescript-presto
#RestEndpoint Source
class RestEndpoint a b | a -> b, b -> a where
Members
makeRequest :: a -> Headers -> Request
decodeResponse :: String -> F b
#defaultMakeRequest Source
defaultMakeRequest :: forall x a. Generic a x => GenericEncode x => Method -> URL -> Headers -> a -> Request
#defaultDecodeResponse Source
defaultDecodeResponse :: forall x a. Generic a x => GenericDecode x => String -> F a
#HeaderField Source
type HeaderField = String
#HeaderValue Source
type HeaderValue = String
#responsePayload Source
responsePayload :: forall a. Response a -> a
#ErrorPayload Source
newtype ErrorPayload
Constructors
ErrorPayload { error :: Boolean, errorMessage :: String, userMessage :: String }
Instances
#ErrorResponse Source
type ErrorResponse = Response ErrorPayload
- Modules
- Presto.
Core. Flow - Presto.
Core. Language. Runtime. API - Presto.
Core. Language. Runtime. Interpreter - Presto.
Core. LocalStorage - Presto.
Core. Operators - Presto.
Core. Types. API - Presto.
Core. Types. App - Presto.
Core. Types. Language. APIInteract - Presto.
Core. Types. Language. Flow - Presto.
Core. Types. Language. Interaction - Presto.
Core. Types. Language. Storage - Presto.
Core. Types. Permission - Presto.
Core. Utils. Encoding