Interface ProxyContext
public interface ProxyContext
A controller for proxy interception.
-
Method Details
-
request
ProxyRequest request()- Returns:
- the proxy request
-
response
ProxyResponse response()- Returns:
- the proxy response, it might be
nullif the response has not been sent
-
sendRequest
Future<ProxyResponse> sendRequest() -
sendResponse
-
isWebSocket
boolean isWebSocket()- Returns:
- if this request or response is the handshake of WebSocket
-
set
-
get
-
client
HttpClient client()- Returns:
- the
HttpClientuse to interact with the origin server
-