Class CACompression

java.lang.Object
com.io7m.cardant.client.basic.internal.CACompression

public final class CACompression extends Object
Functions to decompress responses.
  • Method Details

    • decompressResponse

      public static byte[] decompressResponse(HttpResponse<byte[]> response, HttpHeaders responseHeaders) throws IOException
      Decompress the response if necessary.
      Parameters:
      response - The response
      responseHeaders - The response headers
      Returns:
      The decompressed bytes
      Throws:
      IOException - On errors
    • decompressResponse

      public static byte[] decompressResponse(byte[] response, HttpHeaders responseHeaders) throws IOException
      Decompress the response if necessary.
      Parameters:
      response - The response
      responseHeaders - The response headers
      Returns:
      The decompressed bytes
      Throws:
      IOException - On errors