pub fn write_param(
name: &[u8],
value: &[u8],
out: &mut impl Sink,
) -> Result<(), WriteError>Expand description
Writes ; name=value, the value through write_word.
§Errors
WriteError::NotToken for a name that is not a token, then as
write_word.
§Examples
use parse_net::{write::write_param, SliceSink};
let mut buf = [0u8; 32];
let mut out = SliceSink::new(&mut buf);
write_param(b"charset", b"utf-8", &mut out)?;
assert_eq!(out.written(), b"; charset=utf-8");