| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Textocat.Internal
- makeConn :: FromJSON b => Config -> String -> StdMethod -> ByteString -> [ByteString] -> IO (Either ErrorMsg b)
- checkServiceStatus :: Config -> IO ServiceStatus
Documentation
Arguments
| :: FromJSON b | |
| => Config | API config |
| -> String | URL endpoint |
| -> StdMethod | HTTP method |
| -> ByteString | parameter name; |
| -> [ByteString] | parameter values |
| -> IO (Either ErrorMsg b) |
Make call to API endpoint, send parameter and get answer
Arguments
| :: Config | Config |
| -> IO ServiceStatus |
Check service status. We cannot do it usual way by calling makeConn