Interface PooledHttpRequest
- All Superinterfaces:
HttpRequest
,PooledStreamMessage<HttpObject>
,org.reactivestreams.Publisher<HttpObject>
,Request
,StreamMessage<HttpObject>
public interface PooledHttpRequest extends HttpRequest, PooledStreamMessage<HttpObject>
A streamed HTTP/2
Request
which returns pooled buffers.-
Method Summary
Modifier and Type Method Description default CompletableFuture<AggregatedHttpRequest>
aggregate()
Deprecated.default CompletableFuture<AggregatedHttpRequest>
aggregate(EventExecutor executor)
Deprecated.default CompletableFuture<PooledAggregatedHttpRequest>
aggregateWithPooledObjects()
Aggregates this request.default CompletableFuture<PooledAggregatedHttpRequest>
aggregateWithPooledObjects(ByteBufAllocator alloc)
Aggregates this request.default CompletableFuture<PooledAggregatedHttpRequest>
aggregateWithPooledObjects(EventExecutor executor)
Aggregates this request.default CompletableFuture<PooledAggregatedHttpRequest>
aggregateWithPooledObjects(EventExecutor executor, ByteBufAllocator alloc)
Aggregates this request.static PooledHttpRequest
of(HttpRequest delegate)
Returns aPooledHttpRequest
that wraps theHttpRequest
, ensuring all published data is aPooledHttpData
.Methods inherited from interface com.linecorp.armeria.common.HttpRequest
authority, contentType, headers, method, path, scheme, toDuplicator, toDuplicator, toDuplicator, toDuplicator, uri, withHeaders, withHeaders
Methods inherited from interface com.linecorp.armeria.common.unsafe.PooledStreamMessage
subscribe, subscribe, subscribe, subscribe, subscribeWithPooledObjects, subscribeWithPooledObjects, subscribeWithPooledObjects, subscribeWithPooledObjects
Methods inherited from interface com.linecorp.armeria.common.stream.StreamMessage
abort, abort, defaultSubscriberExecutor, isComplete, isEmpty, isOpen, whenComplete
-
Method Details
-
of
Returns aPooledHttpRequest
that wraps theHttpRequest
, ensuring all published data is aPooledHttpData
. -
aggregateWithPooledObjects
Aggregates this request. The returnedCompletableFuture
will be notified when the content and the trailers of the request are received fully. -
aggregateWithPooledObjects
default CompletableFuture<PooledAggregatedHttpRequest> aggregateWithPooledObjects(ByteBufAllocator alloc)Aggregates this request. The returnedCompletableFuture
will be notified when the content and the trailers of the request are received fully. -
aggregateWithPooledObjects
default CompletableFuture<PooledAggregatedHttpRequest> aggregateWithPooledObjects(EventExecutor executor)Aggregates this request. The returnedCompletableFuture
will be notified when the content and the trailers of the request are received fully. -
aggregateWithPooledObjects
default CompletableFuture<PooledAggregatedHttpRequest> aggregateWithPooledObjects(EventExecutor executor, ByteBufAllocator alloc)Aggregates this request. The returnedCompletableFuture
will be notified when the content and the trailers of the request are received fully. -
aggregate
Deprecated.Aggregate this request without pooled objects. When operating onPooledHttpRequest
, this should be avoided.- Specified by:
aggregate
in interfaceHttpRequest
-
aggregate
Deprecated.Aggregate this request without pooled objects. When operating onPooledHttpRequest
, this should be avoided.- Specified by:
aggregate
in interfaceHttpRequest
-