Interface ProxyInterceptor
public interface ProxyInterceptor
A
HttpProxy interceptor.-
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyInterceptorBuilderbuilder()Create a builder for implementing common HTTP interception hooks such as modifying headers or transforming the HTTP entity stream.default Future<ProxyResponse> handleProxyRequest(ProxyContext context) Handle the proxy request at the stage of this interceptor.handleProxyResponse(ProxyContext context) Handle the proxy response at the stage of this interceptor.
-
Method Details
-
builder
Create a builder for implementing common HTTP interception hooks such as modifying headers or transforming the HTTP entity stream.- Returns:
- a builder for common interception
-
handleProxyRequest
Handle the proxy request at the stage of this interceptor.- Parameters:
context- the proxy context- Returns:
- when the request has actually been sent to the origin
-
handleProxyResponse
Handle the proxy response at the stage of this interceptor.- Parameters:
context- the proxy context- Returns:
- when the response has actually been sent to the user-agent
-