pub fn encode_response_grid( grid: &HGrid, accept: &str, ) -> Result<(Vec<u8>, &'static str), CodecError>
Encode an HGrid for the response using the best Accept type.
Returns (body_bytes, content_type).
(body_bytes, content_type)