@FunctionalInterface public interface EarlyHintsListener
103 Early Hints
informational responses emitted by the server before the final response.
The listener may be invoked multiple times per request, once for each
103 received. It is never invoked for the final (non-1xx) response.
Implementations should be fast and non-blocking. If heavy work is needed, offload it to an application executor.
| Modifier and Type | Method and Description |
|---|---|
void |
onEarlyHints(HttpResponse hints,
HttpContext context)
Called for each received
103 Early Hints informational response. |
void onEarlyHints(HttpResponse hints, HttpContext context) throws HttpException, IOException
103 Early Hints informational response.hints - the 103 response object as received on the wirecontext - the current execution context (never null)HttpException - to signal an HTTP-layer error while handling hintsIOException - to signal an I/O error while handling hintsCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.