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
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 Summary
Methods inherited from interface AttributeHolder
getAttribute, getAttributeMethods inherited from interface HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocaleMethods inherited from interface HttpResponse
body, code, getCookie, getCookies, getStatus, header, reason, setAttribute, status, toMutableResponseMethods inherited from interface MutableAttributeHolder
removeAttribute
-
Method Details
-
byteBody
-
close
void close()Close this response.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-