Module filters

Source
Expand description

Warp filters which can be combined to provide JSON-RPC endpoints.

Generally these lower-level filters will not need to be explicitly called. Instead, casper_json_rpc::route() should be sufficient.

Functionsยง

base_filter
Returns a boxed warp filter which handles the initial setup.
handle_rejection
Handler for rejections where no JSON-RPC response is sent, but an HTTP response is required.
main_filter
Returns a boxed warp filter which handles parsing a JSON-RPC request from the given HTTP body, executing it using the appropriate handler, and providing a reply.