-
public interface ProxyInterceptor
AHttpProxy
interceptor.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
allowApplyToWebSocket()
Used to set whether to apply the interceptor to the WebSocket handshake packet.default Future<ProxyResponse>
handleProxyRequest(ProxyContext context)
Handle the proxy request at the stage of this interceptor.default Future<Void>
handleProxyResponse(ProxyContext context)
Handle the proxy response at the stage of this interceptor.
-
-
-
Method Detail
-
handleProxyRequest
default Future<ProxyResponse> handleProxyRequest(ProxyContext context)
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
default Future<Void> handleProxyResponse(ProxyContext context)
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
-
allowApplyToWebSocket
default boolean allowApplyToWebSocket()
Used to set whether to apply the interceptor to the WebSocket handshake packet. The default value is false.- Returns:
- the boolean value
-
-