code: public static InputStream getBody(okhttp3.Response response) throws IOException
      {
          String encoding = response.header("content-encoding", "");
          if (encoding.equals("gzip"))
              return new GZIPInputStream(response.body().byteStream());
          return response.body().byteStream();
      }
docs: Retrieves an {@link java.io.InputStream InputStream} for the provided {@link okhttp3.Response Response}.
  <br>When the header for {@code content-encoding} is set with {@code gzip} this will wrap the body
  in a {@link java.util.zip.GZIPInputStream GZIPInputStream} which decodes the data.
  
  <p>This is used to make usage of encoded responses more user-friendly in various parts of JDA.
  
  @param  response
  The not-null Response object
  
  @throws IOException
  If a GZIP format error has occurred or the compression method used is unsupported
  
  @return InputStream representing the body of this response