The JSON-RPC module (Pt::JsonRpc) of the Pt framework provides a client API to call remote procedures and a server API to implement remote procedures. Blocking and non-blocking APIs exist in either case. The JSON-RPC module builds on top of the HTTP module (Pt::Http) and uses the HTTP client and server implementation thereof. Custom data-types can be used in JSON-RPC procedures if they are serializable using Pt's serialization API.
Classes | |
| class | Client |
| A client for JSON-RPC 2.0 remote procedure calls. More... | |
| class | Fault |
| JSON-RPC fault exception. More... | |
| class | Formatter |
| Formatter for JSON-RPC message serialization and deserialization. More... | |
| class | HttpClient |
| A client for JSON-RPC 2.0 remote procedure calls via HTTP. More... | |
| class | HttpService |
| HTTP service for JSON-RPC 2.0. More... | |
| class | ProcedureDeclaration |
| Maps parameter names to positional indices for named parameters. More... | |
| class | Responder |
| Dispatches JSON-RPC requests to a service procedure. More... | |
| class | ServiceDeclaration |
| Declares named parameter mappings for JSON-RPC procedures. More... | |