Skip to main content

rpc_request_type

Function rpc_request_type 

Source
pub fn rpc_request_type(bytes: &[u8]) -> Option<String>
Expand description

Extract a request tag from the mandatory RPC wrapper, including unknown tags.

The server names every request with this before it is authenticated, so it reads the frame only as far as the tag and keeps nothing of what it steps over (finding 50): decoding the frame whole cost about 50 times its size in heap.