jsonrpc-conduit-0.3.11: JSON-RPC 2.0 server over a Conduit.
Copyright(c) 2012-2021 Gabriele Sales <gbrsales@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Data.Conduit.JsonRpc.Server

Description

JSON-RPC 2.0 server Conduit.

Synopsis

Documentation

serve :: (Applicative m, Monad m) => Methods m -> ConduitT ByteString ByteString m () Source #

A Conduit that consumes a stream of JSON-RPC requests, tries to process them with the provided Methods and writes back the results.

Current limitations:

  • does not support batch requests
  • it is not possible to set the data attribute of error objects