Module parse

Source
Expand description

Parse JSON-RPC method calls and notifications, and build responses messages.

Structs§

ParseError
Error while parsing a request.
Request
Decoded JSON-RPC request.

Enums§

ErrorResponse
Error that can be reported to the JSON-RPC client.
Response
Decoded JSON-RPC response.

Functions§

build_error_response
Builds a JSON response.
build_parse_error_response
Builds a JSON error response when a request couldn’t be decoded.
build_request
Builds a JSON request.
build_success_response
Builds a JSON response.
parse_request
Parses a JSON-encoded RPC method call or notification.
parse_response
Parses a JSON-encoded RPC response.