Package io.micronaut.http
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 io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute
Methods inherited from interface io.micronaut.http.HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocale
Methods inherited from interface io.micronaut.http.HttpResponse
body, code, getCookie, getCookies, getStatus, header, reason, setAttribute, status, toMutableResponse
Methods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttribute
-
Method Details
-
byteBody
The body bytes.- Returns:
- The bytes
-
close
void close()Close this response.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-