Class ResponseHandlerByteArray

java.lang.Object
com.helger.httpclient.response.ResponseHandlerByteArray
All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>

public class ResponseHandlerByteArray extends Object implements org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>
Convert a valid HTTP response to a byte array.
Author:
Philip Helger
  • Constructor Details

    • ResponseHandlerByteArray

      public ResponseHandlerByteArray()
  • Method Details

    • handleResponse

      @Nullable public byte[] handleResponse(@Nonnull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws IOException
      Specified by:
      handleResponse in interface org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>
      Throws:
      IOException