Interface PooledAggregatedHttpResponse
- All Superinterfaces:
AggregatedHttpMessage
,AggregatedHttpResponse
,AutoCloseable
,SafeCloseable
public interface PooledAggregatedHttpResponse extends AggregatedHttpResponse, SafeCloseable
An
AggregatedHttpResponse
using pooled buffers for the content. Make sure to call
AutoCloseable.close()
on this response or the content
to release pooled resources.-
Method Summary
Modifier and Type Method Description PooledHttpData
content()
Returns the content of this message.PooledHttpResponse
toHttpResponse()
Converts this response into a new completeHttpResponse
.Methods inherited from interface com.linecorp.armeria.common.AggregatedHttpMessage
content, contentAscii, contentType, contentUtf8, trailers
Methods inherited from interface com.linecorp.armeria.common.AggregatedHttpResponse
headers, informationals, status
-
Method Details
-
content
PooledHttpData content()Description copied from interface:AggregatedHttpMessage
Returns the content of this message.- Specified by:
content
in interfaceAggregatedHttpMessage
-
toHttpResponse
PooledHttpResponse toHttpResponse()Description copied from interface:AggregatedHttpResponse
Converts this response into a new completeHttpResponse
.- Specified by:
toHttpResponse
in interfaceAggregatedHttpResponse
- Returns:
- the new
HttpResponse
converted from this response.
-