pub fn encode(headers: &[(&str, &str)], payload: &[u8]) -> Vec<u8> ⓘ
Encodes a message with string headers, for tests and mock servers.