hyperlane-plugin-rpc 23.3.0

A JSON-RPC 2.0 server plugin for the Hyperlane framework with async method routing, batch dispatch, notification handling, and configurable payload and batch DoS bounds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

/// Global initialized [`RpcPlugin`] instance.
pub(crate) static RPC_PLUGIN: OnceLock<RpcPlugin> = OnceLock::new();

/// Lazily prebuilt HTTP/1.1 `405 Method Not Allowed` wire bytes.
pub(crate) static WIRE_405_CACHE: OnceLock<Vec<u8>> = OnceLock::new();

/// Lazily prebuilt HTTP/1.1 `413 Payload Too Large` wire bytes.
pub(crate) static WIRE_413_CACHE: OnceLock<Vec<u8>> = OnceLock::new();

/// Lazily prebuilt HTTP/1.1 `204 No Content` wire bytes.
pub(crate) static WIRE_204_CACHE: OnceLock<Vec<u8>> = OnceLock::new();