Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.Client.JsonRpc
Contents
Description
This module provides support for generating JSON-RPC clients in the Servant framework.
type Mul = JsonRpc "mul" (Int, Int) String Int mul :: (Int, Int) -> ClientM (JsonRpcResponse String Int) mul = client $ Proxy @Mul
Note: This client implementation runs over HTTP and the semantics of HTTP remove the need for the message id.
Documentation
module Servant.JsonRpc