Important Note
please note it is required for decorators that implement post execution aspects
or response post-processing of any sort to release resources associated with the response
by calling ClassicHttpResponse#close() methods in case of an I/O, protocol or
runtime exception, or in case the response is not propagated to the caller.
For information regarding the handler chain behaviour in case of a request re-execution,
please refer to the HttpRequestRetryExec javadoc.
Well known request execution handlers could be referred to by name using one of the
ChainElement enum values.
ChainElement, HttpClientBuilder#addExecInterceptorFirst(String, ExecChainHandler), HttpClientBuilder#addExecInterceptorBefore(String, String, ExecChainHandler), HttpClientBuilder#addExecInterceptorAfter(String, String, ExecChainHandler), HttpClientBuilder#addExecInterceptorLast(String, ExecChainHandler)
| Modifier and Type | Method and Description |
|---|---|
| public ClassicHttpResponse | execute(ClassicHttpRequest
the actual request. request, ExecChain.the execution scope . scope,the next element in the request execution chain. chain)Executes the actual HTTP request. |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(ClassicHttpRequest request, ExecChain. Executes the actual HTTP request. The handler can choose to return a response message or delegate request execution to the next element in the execution chain.
| |