public final class EarlyHintsAsyncExec extends Object implements AsyncExecChainHandler
103 Early Hints
informational responses to a user-provided
EarlyHintsListener
without affecting processing of the final (non-1xx) response.
This handler forwards each 103 informational response to the
listener. All other responses (including the final response) are delegated
unchanged.
For security and interoperability, applications typically act only on
headers considered safe in Early Hints (for example, Link with
rel=preload or rel=preconnect).
| Constructor and Description |
|---|
EarlyHintsAsyncExec(EarlyHintsListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback callback)
Executes the actual HTTP request.
|
public EarlyHintsAsyncExec(EarlyHintsListener listener)
public void execute(HttpRequest request, AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback callback) throws HttpException, IOException
AsyncExecChainHandlerexecute in interface AsyncExecChainHandlerrequest - the actual request.entityProducer - the request entity producer or null if the request
does not enclose an entity.scope - the execution scope .chain - the next element in the request execution chain.callback - the execution callback.HttpException - If a protocol error occurs.IOException - If an I/O error occurs.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.