Document exec chain behaviour when automatic retries are enabled. by cachescrubber · Pull Request #480 · apache/httpcomponents-client (original) (raw)

@ok2c I removed the snippets. Having implemented a handler myself I remember having to dig in the source of clientBuilder in order to find the name of the retry handler. What about

 * @see ChainElement#RETRY
 * @see HttpClientBuilder#addExecInterceptorAfter(String, String, ExecChainHandler)
 * @see HttpClientBuilder#addExecInterceptorBefore(String, String, ExecChainHandler)

I think I would at least document the name (ChainElement#RETRY) in order to place the interceptors relative to it. WDYT?