package pidgio

  1. Overview
  2. Docs
Description of JSONRPC Servers on processes

Install

dune-project
 Dependency

Authors

Maintainers

Sources

pidgio-0.0.1.tbz
sha256=1956664485b9073d26246d0655ddbd219e83c662c9617e30cd8d9215fed408c6
sha512=db5896e80e8f1822d2a8357727371d10940bda771fd3b0b9477fd93f3427ba095a7b7864616aa6192dcdc8e53dd77c627bec55361b88f180a933140f3a2724e8

doc/index.html

pidgio

API

Library pidgio

  • Pidgio A library for writing JSON-RPC 2.0 servers that communicate over a process's standard streams rather than a socket. You declare a set of methods (using Highway), each with its own parameter decoding and result encoding (using Pidgin), and the library handles the rest of the protocol: reading framed messages from stdin, parsing and validating envelopes, routing requests to handlers, distinguishing requests from notifications, serialising results and errors back to stdout, and reporting malformed input with the standard error codes.