Uses of Interface
org.microproxy.ProxyFailure
Packages that use ProxyFailure
-
Uses of ProxyFailure in org.microproxy
Classes in org.microproxy that implement ProxyFailureModifier and TypeClassDescriptionstatic final recordThe proxy refuses the request: an origin-form request withoutHttpProxyServerBootstrap.withAllowRequestToOriginServer(boolean), anhttps://request withoutHttpProxyServerBootstrap.withTlsOrigination(boolean), or aCONNECTtarget that is nothost:port.static final recordThe server's response was malformed, or the server closed the connection or failed before the response head (or a body the filters asked to buffer) was complete.static final recordNo connection could be made to the server or any chained proxy offered for it: refused, unreachable, timed out, a chained proxy whose own name did not resolve, or a chained proxy that refused theCONNECTor SOCKS request.static final recordThe shared connection pool had no connection to spare within the connect timeout.static final recordThere is nowhere to send the request: it names no host (hostAndPortis null), or theChainedProxyManageroffered no route.static final recordThe request body is larger than the filters asked to buffer (maxBytes).static final recordThe server did not answer within the idle timeout.static final recordThe TLS handshake with the server (when intercepting) or with a TLS chained proxy failed or did not finish withinHttpProxyServerBootstrap.withTlsHandshakeTimeout(java.time.Duration)(or the request'sHttpFilters.proxyToServerTlsHandshakeTimeout()), e.g. because its certificate is not trusted.static final recordThe server's name did not resolve (direct connections).Methods in org.microproxy that return types with arguments of type ProxyFailureModifier and TypeMethodDescriptionFlowContext.failure()Why the proxy had to answer the exchange in progress on this connection (or the last one) itself, or abandon it: the failure handed toHttpFilters.proxyToServerFailure(org.microproxy.ProxyFailure), set before the filters see it.FlowRecord.failure()Returns why the proxy had to answer itself (seeFlowContext.failure()), or empty.Methods in org.microproxy with parameters of type ProxyFailureModifier and TypeMethodDescriptionFlowRecord.Builder.outcome(Set<ResponseFlag> flags, ProxyFailure failure, String details) Sets the outcome: flags, failure and details.default HttpResponseHttpFilters.proxyToServerFailure(ProxyFailure failure) Called when the proxy is about to answer this request itself because offailure(the server could not be reached, timed out or answered badly, the request was refused, ...).HttpFiltersBuilder.Built.proxyToServerFailure(ProxyFailure failure) HttpFiltersChain.Chained.proxyToServerFailure(ProxyFailure failure) FailureResponder.respond(HttpRequest request, ProxyFailure failure) Returns the response forfailure, ornullfor the proxy's default.Method parameters in org.microproxy with type arguments of type ProxyFailureModifier and TypeMethodDescriptionHttpFiltersBuilder.onFailure(Function<ProxyFailure, HttpResponse> hook) The proxy's own answer when the request fails (proxyToServerFailure): return a response to send instead of the default, ornull.