[−][src]Function body_image_futio::decode_res_body
pub fn decode_res_body(
dialog: &mut Dialog,
tune: &Tunables
) -> Result<bool, FutioError>
Decode the response body of the provided Dialog
compressed with any
supported Encoding
, updated the dialog accordingly. The provided
Tunables
controls decompression buffer sizes and if the final
BodyImage
will be in Ram
or FsRead
. Returns Ok(true)
if the
response body was decoded, or Ok(false)
if no encoding was found, or an
error on failure, including from an unsupported Encoding
.