Package com.browserup.bup.filters
Class HttpsOriginalHostCaptureFilter
- java.lang.Object
-
- org.littleshoot.proxy.HttpFiltersAdapter
-
- com.browserup.bup.filters.HttpsHostCaptureFilter
-
- com.browserup.bup.filters.HttpsOriginalHostCaptureFilter
-
- All Implemented Interfaces:
org.littleshoot.proxy.HttpFilters
public class HttpsOriginalHostCaptureFilter extends HttpsHostCaptureFilter
Captures the original host for HTTPS requests and stores the value in the ChannelHandlerContext for use byHttpsAwareFiltersAdapterfilters. This filter sets the isHttps attribute on the ChannelHandlerContext during the HTTP CONNECT and therefore MUST be invoked before any other filters calling any of the methods inHttpsAwareFiltersAdapter. This filter extendsHttpsHostCaptureFilterand so also sets the host attribute on the channel for use by filters that modify the original host during the CONNECT. If the hostname is modified by filters, it will be overwritten when theHttpsHostCaptureFilteris processed later in the filter chain.
-
-
Constructor Summary
Constructors Constructor Description HttpsOriginalHostCaptureFilter(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
-
Methods inherited from class com.browserup.bup.filters.HttpsHostCaptureFilter
clientToProxyRequest
-
Methods inherited from class org.littleshoot.proxy.HttpFiltersAdapter
proxyToClientResponse, proxyToServerConnectionFailed, proxyToServerConnectionQueued, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut
-
-