Uses of Interface
org.microproxy.http.HttpResponse
Packages that use HttpResponse
-
Uses of HttpResponse in org.microproxy
Methods in org.microproxy that return HttpResponseModifier and TypeMethodDescriptionAuthResult.Rejected.challenge()Returns the value of thechallengerecord component.default HttpResponseHttpFilters.clientToProxyRequest(HttpObject httpObject) Filters requests on their way from the client to the proxy.HttpFiltersBuilder.Built.clientToProxyRequest(HttpObject httpObject) HttpFiltersChain.Chained.clientToProxyRequest(HttpObject httpObject) 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) default HttpResponseHttpFilters.proxyToServerRequest(HttpObject httpObject) Filters requests on their way from the proxy to the server, after the proxy has rewritten headers.HttpFiltersBuilder.Built.proxyToServerRequest(HttpObject httpObject) HttpFiltersChain.Chained.proxyToServerRequest(HttpObject httpObject) FailureResponder.respond(HttpRequest request, ProxyFailure failure) Returns the response forfailure, ornullfor the proxy's default.FlowRecord.response()Returns the response head the client got (or that a SOCKS or transparent client's tunnel was answered with), ornull.Methods in org.microproxy with parameters of type HttpResponseModifier and TypeMethodDescriptiondefault voidHttpFilters.proxyToClientResponseSent(HttpResponse response, ResponseSource source) Called once the whole response has been written to the client, whoever made it: the server, the proxy, a filter or the cache.voidHttpFiltersBuilder.Built.proxyToClientResponseSent(HttpResponse response, ResponseSource source) voidHttpFiltersChain.Chained.proxyToClientResponseSent(HttpResponse response, ResponseSource source) static AuthResultAuthResult.reject(HttpResponse challenge) Rejects withchallenge; seeAuthResult.Rejected.FlowRecord.Builder.response(HttpResponse response, ResponseSource source) Sets the response the client got, and where it came from.default intHttpFilters.responseBufferSizeInBytes(HttpResponse response) Asks for this response to be buffered, after seeing its head: return a positive size to receive the head and body as oneFullHttpResponseinHttpFilters.serverToProxyResponse(org.microproxy.http.HttpObject), or 0 to stream.intHttpFiltersBuilder.Built.responseBufferSizeInBytes(HttpResponse response) intHttpFiltersChain.Chained.responseBufferSizeInBytes(HttpResponse response) default voidActivityTracker.responseCompleted(FlowContext flowContext, HttpResponse httpResponse) Called when the whole response to a request, body included, has been written to the client (for aCONNECTor a protocol upgrade: once the response head has, before the tunnel starts).default voidActivityTracker.responseReceivedFromServer(FullFlowContext flowContext, HttpResponse httpResponse) Called when a response head arrives from the server.default voidActivityTracker.responseSentToClient(FlowContext flowContext, HttpResponse httpResponse) Called when a response head is sent to the client.default voidActivityTracker.responseSentToClient(FlowContext flowContext, HttpResponse httpResponse, ResponseSource source) Called when a response head has been sent to the client, with where the response came from.Method parameters in org.microproxy with type arguments of type HttpResponseModifier and TypeMethodDescriptionHttpFiltersBuilder.beforeResponding(UnaryOperator<HttpResponse> hook) The response head just before it goes to the client (proxyToClientResponse).HttpFiltersBuilder.beforeSending(Function<HttpRequest, HttpResponse> hook) The request head just before it goes to the server (proxyToServerRequest), with the proxy's own header changes applied.HttpFiltersBuilder.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.HttpFiltersBuilder.onRequest(Function<HttpRequest, HttpResponse> hook) The request head as the client sent it (clientToProxyRequest); a wholeFullHttpRequestwhen buffered (HttpFiltersBuilder.bufferRequests(int)).HttpFiltersBuilder.onResponse(UnaryOperator<HttpResponse> hook) The response head from the server (serverToProxyResponse); a wholeFullHttpResponsewhen buffered (HttpFiltersBuilder.bufferResponses(int)).Constructors in org.microproxy with parameters of type HttpResponseModifierConstructorDescriptionRejected(HttpResponse challenge) Creates an instance of aRejectedrecord class. -
Uses of HttpResponse in org.microproxy.cache
Classes in org.microproxy.cache that implement HttpResponseModifier and TypeClassDescriptionstatic final classA response made by the cache: a stored response, or its own504. -
Uses of HttpResponse in org.microproxy.extras
Classes in org.microproxy.extras that implement HttpResponseModifier and TypeClassDescriptionstatic final classA response answered from a recording, which the proxy reports asResponseSource.REPLAY.Methods in org.microproxy.extras that return HttpResponseModifier and TypeMethodDescriptionConcurrencyLimiter.Responder.respond(String key, HttpRequest request, FlowContext flow) Creates the HTTP response for a refused request.default HttpResponseFlowFilter.Flow.response()Returns the response, or null before there is one.Methods in org.microproxy.extras with parameters of type HttpResponseModifier and TypeMethodDescriptionstatic FlowFilter.FlowFlowFilter.flow(HttpRequest request, String url, HttpResponse response) A view of an exchange for filters. -
Uses of HttpResponse in org.microproxy.http
Subinterfaces of HttpResponse in org.microproxy.httpClasses in org.microproxy.http that implement HttpResponseModifier and TypeClassDescriptionclassA complete response with its body.classMutableHttpResponsehead.Methods in org.microproxy.http that return HttpResponseModifier and TypeMethodDescriptionDefaultHttpResponse.setProtocolVersion(HttpVersion version) HttpResponse.setProtocolVersion(HttpVersion version) DefaultHttpResponse.setStatus(HttpResponseStatus status) HttpResponse.setStatus(HttpResponseStatus status) Changes the response status.