Function hyper_content_encoding::response_to_string
source · pub async fn response_to_string(
res: Response<Incoming>
) -> Result<String, HyperContentEncodingError>Expand description
Extracts the body of a response as a String.
The response must contain a Content-Type with the word text
Currently the only handled Content-Encodings that are supported are
identityx-gzipgzipdeflate