public class HttpsHostCaptureFilter
extends org.littleshoot.proxy.HttpFiltersAdapter
HttpsAwareFiltersAdapter
filters. This filter reads the host from the HttpRequest during the HTTP CONNECT call, and therefore MUST be invoked
after any other filters which modify the host.
Note: If the request uses the default HTTPS port (443), it will be removed from the hostname captured by this filter.Constructor and Description |
---|
HttpsHostCaptureFilter(io.netty.handler.codec.http.HttpRequest originalRequest,
io.netty.channel.ChannelHandlerContext ctx) |
Modifier and Type | Method and Description |
---|---|
io.netty.handler.codec.http.HttpResponse |
clientToProxyRequest(io.netty.handler.codec.http.HttpObject httpObject) |
proxyToClientResponse, proxyToServerConnectionFailed, proxyToServerConnectionQueued, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut
public HttpsHostCaptureFilter(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx)
public io.netty.handler.codec.http.HttpResponse clientToProxyRequest(io.netty.handler.codec.http.HttpObject httpObject)
clientToProxyRequest
in interface org.littleshoot.proxy.HttpFilters
clientToProxyRequest
in class org.littleshoot.proxy.HttpFiltersAdapter
Copyright © 2017. All rights reserved.