public abstract class FilteredHttpRequest extends FilteredStreamMessage<HttpObject,HttpObject> implements HttpRequest
HttpRequest that filters objects as they are published. The filtering
will happen from an I/O thread, meaning the order of the filtering will match the
order that the delegate processes the objects in.| Modifier | Constructor and Description |
|---|---|
protected |
FilteredHttpRequest(HttpRequest delegate)
Creates a new
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber. |
protected |
FilteredHttpRequest(HttpRequest delegate,
boolean withPooledObjects)
Creates a new
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber. |
| Modifier and Type | Method and Description |
|---|---|
RequestHeaders |
headers()
Returns the initial HTTP/2 headers of this request.
|
abort, abort, beforeComplete, beforeError, beforeSubscribe, defaultSubscriberExecutor, drainAll, drainAll, filter, isEmpty, isOpen, subscribe, subscribe, whenCompleteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaggregate, aggregate, aggregateWithPooledObjects, aggregateWithPooledObjects, authority, contentType, method, of, of, of, of, of, of, of, of, of, of, of, of, of, of, path, scheme, streaming, streaming, toDuplicator, toDuplicator, toDuplicator, toDuplicator, uri, withHeaders, withHeadersabort, abort, closeFuture, completionFuture, defaultSubscriberExecutor, drainAll, drainAll, drainAll, drainAll, isComplete, isEmpty, isOpen, of, subscribe, subscribe, subscribe, subscribe, whenCompleteprotected FilteredHttpRequest(HttpRequest delegate)
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber.protected FilteredHttpRequest(HttpRequest delegate, boolean withPooledObjects)
FilteredHttpRequest that filters objects published by delegate
before passing to a subscriber.withPooledObjects - if true, FilteredStreamMessage.filter(Object) receives the
pooled ByteBuf and ByteBufHolder as is, without making a copy.
If you don't know what this means,
use FilteredHttpRequest(HttpRequest).public RequestHeaders headers()
HttpRequestheaders in interface HttpRequestCopyright © 2020 LeanCloud. All rights reserved.