A minimalistic types implementation of the JSON-RPC protocol.
```rust use jsonrpc_base::Request;
let (id, request) = Request::new("foo/barBaz") .with_params(vec![1, 2, 3]) .expect("vec JSON parse will not fail") .prepare();
let mut lines = request.lines(); asserteq!(lines.next(), Some("Content-Length: 100")); asserteq!(lines.next(), Some(""));
let mut message = String::new(); message.pushstr(r#"{"jsonrpc":"2.0","id":"#); message.pushstr(id.tostring().asstr()); message.pushstr(r#","method":"foo/barBaz","params":[1,2,3]}"#); asserteq!(lines.next(), Some(message.as_str())); ```