Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Scheme
- data Authority = Authority {}
- data Config = Config {}
- clientWith :: forall route response. (forall caps qrys req resp. route caps qrys req resp -> Method) -> (forall caps qrys req resp. route caps qrys req resp -> Path CaptureEncoding caps) -> (forall caps qrys req resp. route caps qrys req resp -> Rec (Query CaptureEncoding) qrys) -> (forall caps qrys req resp. route caps qrys req resp -> RequestBody (Many BodyEncoding) req) -> (forall caps qrys req resp. route caps qrys req resp -> ResponseBody (Many BodyDecoding) resp) -> Config -> Prepared route response -> IO (Either TrasaErr response)
Types
If you select Https you need to pass in a tls manager in config or tls wont actually happen
Authority | |
|
Requests
:: (forall caps qrys req resp. route caps qrys req resp -> Method) | Get the method out of the route |
-> (forall caps qrys req resp. route caps qrys req resp -> Path CaptureEncoding caps) | Get a way to encode paths from a route |
-> (forall caps qrys req resp. route caps qrys req resp -> Rec (Query CaptureEncoding) qrys) | Get a way to encode query params from a route |
-> (forall caps qrys req resp. route caps qrys req resp -> RequestBody (Many BodyEncoding) req) | Get a way to encode request bodies from a route |
-> (forall caps qrys req resp. route caps qrys req resp -> ResponseBody (Many BodyDecoding) resp) | Get a way to encode response bodies from a route |
-> Config | |
-> Prepared route response | Which endpoint to request |
-> IO (Either TrasaErr response) |