public byte[] bytes() throws HttpRequestException {
    final ByteArrayOutputStream output = byteStream();
    try {
      copy(buffer(), output);
    } catch (IOException e) {
      throw new HttpRequestException(e);
    }
    return output.toByteArray();
  }
Get response as byte array

@return byte array
@throws HttpRequestException
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java