Interface HttpClientContextHandler
-
@ThreadSafe public interface HttpClientContextHandlerExtension that allows theHttpClientContextto be externally manipulated before use.- Since:
- 7.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvokeAfter(HttpClientContext context, HttpUriRequest request)Perform any desired context modifications after use.voidinvokeBefore(HttpClientContext context, HttpUriRequest request)Perform any desired context modifications before use.
-
-
-
Method Detail
-
invokeBefore
void invokeBefore(@Nonnull HttpClientContext context, @Nonnull HttpUriRequest request) throws IOExceptionPerform any desired context modifications before use.- Parameters:
context- the context to operate onrequest- the request that will be executed- Throws:
IOException- if the call should be aborted
-
invokeAfter
void invokeAfter(@Nonnull HttpClientContext context, @Nonnull HttpUriRequest request) throws IOExceptionPerform any desired context modifications after use.- Parameters:
context- the context to operate onrequest- the request that was executed- Throws:
IOException- if the call should be aborted
-
-