Package com.browserup.bup.filters
Class HttpsHostCaptureFilter
- java.lang.Object
-
- org.littleshoot.proxy.HttpFiltersAdapter
-
- com.browserup.bup.filters.HttpsHostCaptureFilter
-
- All Implemented Interfaces:
org.littleshoot.proxy.HttpFilters
- Direct Known Subclasses:
HttpsOriginalHostCaptureFilter
public class HttpsHostCaptureFilter extends org.littleshoot.proxy.HttpFiltersAdapterCaptures the host for HTTPS requests and stores the value in the ChannelHandlerContext for use byHttpsAwareFiltersAdapterfilters. 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 Summary
Constructors Constructor Description HttpsHostCaptureFilter(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.codec.http.HttpResponseclientToProxyRequest(io.netty.handler.codec.http.HttpObject httpObject)-
Methods inherited from class org.littleshoot.proxy.HttpFiltersAdapter
proxyToClientResponse, proxyToServerConnectionFailed, proxyToServerConnectionQueued, proxyToServerConnectionSSLHandshakeStarted, proxyToServerConnectionStarted, proxyToServerConnectionSucceeded, proxyToServerRequest, proxyToServerRequestSending, proxyToServerRequestSent, proxyToServerResolutionFailed, proxyToServerResolutionStarted, proxyToServerResolutionSucceeded, serverToProxyResponse, serverToProxyResponseReceived, serverToProxyResponseReceiving, serverToProxyResponseTimedOut
-
-
-
-
Method Detail
-
clientToProxyRequest
public io.netty.handler.codec.http.HttpResponse clientToProxyRequest(io.netty.handler.codec.http.HttpObject httpObject)
- Specified by:
clientToProxyRequestin interfaceorg.littleshoot.proxy.HttpFilters- Overrides:
clientToProxyRequestin classorg.littleshoot.proxy.HttpFiltersAdapter
-
-