pub fn classify_message(data: &[u8]) -> Option<(&[u8], bool)>Expand description
Skips the leading whitespace of a JSON-RPC message and tells a single request from a batch by its first byte.
Returns the message from that byte on and whether it is a single request, or None if the
first 128 bytes do not lead to a { or a [. Only the four JSON whitespace characters are
skipped, not for example form feed.