Req.decompress
You're seeing just the function
decompress
, go back to Req module for more information.
Decompresses the response body based on the content-encoding
header.
Examples
iex> response = Req.get!("https://httpbin.org/gzip")
iex> response.headers
[
{"content-encoding", "gzip"},
{"content-type", "application/json"},
...
]
iex> response.body
%{
"gzipped" => true,
...
}