Skip to main content

encode

Function encode 

Source
pub fn encode(headers: &[(&str, &str)], payload: &[u8]) -> Vec<u8> ⓘ
Expand description

Encodes a message with string headers, for tests and mock servers.