Uses of Class
org.microproxy.ProtocolPolicy
Packages that use ProtocolPolicy
-
Uses of ProtocolPolicy in org.microproxy
Methods in org.microproxy that return ProtocolPolicyModifier and TypeMethodDescriptionProtocolPolicy.Builder.build()The policy set so far.static ProtocolPolicyProtocolPolicy.defaults()MicroProxy's defaults, every field set (but the HTTP/1-onlyallowChunkedLength(), whichHttpProxyServerBootstrap.withAllowChunkedLength(boolean)decides):resolveBeforeProxyToServerRequest():false, soHttpFilters.proxyToServerRequest(org.microproxy.http.HttpObject)can answer or redirect a request without a DNS lookup;filterConnectAnswer():true, so response filters see the200that opens aCONNECTtunnel and can turn it into a refusal;servePlainHttpAfterConnect():true, so plain HTTP sent after aCONNECTthat could be intercepted (aws://WebSocket, say) is served as HTTP, its requests seen by filters;proxyProtocolDestination():ProxyProtocolDestination.LOCAL_ADDRESS;tlsRetryWithoutSni():false;requestHeadTimeout(): 30 seconds for HTTP/1 request heads, with zero disabling the deadline;generatedResponses():GeneratedResponses.REPLACEABLE, so a filter can brand the proxy's own responses;mitmServerHandshake():MitmServerHandshake.DEFERRED, so the server's handshake can mirror the client's ClientHello.static ProtocolPolicyProtocolPolicy.empty()A policy that sets nothing: every field is left to what applies below it.default ProtocolPolicyHttpProxyServer.getProtocolPolicy(HttpVersion clientVersion) TheProtocolPolicythe server applies to the exchanges of clients that speakclientVersion(HTTP/1.0 and 1.1 alike), every field resolved: the protocol's own policy over the one for all protocols over the protocol's defaults (seeProtocolPolicy).static ProtocolPolicyProtocolPolicy.littleProxy()LittleProxy's behaviour, as of LittleProxy 2.9.1, every field set (but the HTTP/1-onlyallowChunkedLength(): LittleProxy rejects such requests, through Netty'sHttpObjectDecoder, as MicroProxy does by default).ProtocolPolicy.orElse(ProtocolPolicy fallback) This policy with the fields it leaves unset taken fromfallback.static ProtocolPolicyA preset policy by its configuration name:littleproxyforlittleProxy(),microproxyordefaultsfordefaults()(any case).Methods in org.microproxy with parameters of type ProtocolPolicyModifier and TypeMethodDescriptionProtocolPolicy.orElse(ProtocolPolicy fallback) This policy with the fields it leaves unset taken fromfallback.Http1PolicyBuilder.preset(ProtocolPolicy preset) ProtocolPolicy.Builder.preset(ProtocolPolicy preset) Sets every field thatpresetsets (such aslittleProxy()), overwriting what was set before; setters called after it overwrite it in turn.