Skip to main content

decode_request_grid_bytes

Function decode_request_grid_bytes 

Source
pub fn decode_request_grid_bytes(
    body: &[u8],
    content_type: &str,
) -> Result<HGrid, CodecError>
Expand description

Decode a request body (as raw bytes) into an HGrid using the given Content-Type.

Supports both text-based codecs and the binary HBF codec. Falls back to "text/zinc" if the content type is not recognized.