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