Safe Haskell | None |
---|---|
Language | Haskell2010 |
Smith HTTP interactions.
Should be used as a qualified import from top-level module:
import qualified Smith.Client as Smith
Example: > Smith.runRequest configuration Smith.userinfo
Synopsis
- runRequest :: Smith -> Request a -> IO (Either SmithError a)
- runRequestT :: Smith -> Request a -> ExceptT SmithError IO a
Documentation
runRequest :: Smith -> Request a -> IO (Either SmithError a) Source #
Takes Smith runtime data, and an API request definition and actually runs the request. Results are in IO and the error cases handled explicitly.
runRequestT :: Smith -> Request a -> ExceptT SmithError IO a Source #
Takes Smith runtime data, and an API request definition and actually runs the request. Results are embeded in ExceptT for convenience.