You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop HttpResponseHeaders and add a default method to notify trailing headers, close#1397
Motivation:
HttpResponseHeaders brings an extra allocation and complexity for the
sheer sake of holding the information that those headers are trailing
ones. Trailing headers are actually a rare thing, we could just add an
extra method on AsyncHandler with a default implementation that would
noop.
Modifications:
* drop HttpResponseHeaders
* pass Netty’s HttpHeaders
* introduce AsyncHandler#onTrailingHeadersReceived
Result:
More simple API (no need to unwrap), less allocations
* An {@link AsyncHandler} augmented with an {@link #onCompleted(Response)} convenience method which gets called
25
-
* when the {@link Response} processing is finished. This class also implement the {@link ProgressAsyncHandler} callback,
26
-
* all doing nothing except returning {@link org.asynchttpclient.AsyncHandler.State#CONTINUE}
26
+
* An {@link AsyncHandler} augmented with an {@link #onCompleted(Response)} convenience method which gets called when the {@link Response} processing is finished. This class also
27
+
* implement the {@link ProgressAsyncHandler} callback, all doing nothing except returning {@link org.asynchttpclient.AsyncHandler.State#CONTINUE}
27
28
*
28
29
* @param <T> Type of the value that will be returned by the associated {@link java.util.concurrent.Future}
29
30
*/
@@ -32,41 +33,37 @@ public abstract class AsyncCompletionHandler<T> implements AsyncHandler<T>, Prog
0 commit comments