Interface ByteBodyHttpResponse<B>

Type Parameters:
B - The original (non-encoded) body type
All Superinterfaces:
AttributeHolder, AutoCloseable, Closeable, HttpMessage<B>, HttpResponse<B>, MutableAttributeHolder
All Known Implementing Classes:
ByteBodyHttpResponseWrapper

public interface ByteBodyHttpResponse<B> extends HttpResponse<B>, Closeable
Special response type that contains the encoded response bytes. Responses of this type must also be closed if their byteBody() is not used.
Since:
4.7.0
Author:
Jonas Konrad
  • Method Details

    • byteBody

      @NonNull ByteBody byteBody()
      The body bytes.
      Returns:
      The bytes
    • close

      void close()
      Close this response.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable