Package burp.api.montoya.proxy
Interface ProxyHttpResponseHandler
-
public interface ProxyHttpResponseHandlerExtensions can implement this interface and then callProxy.registerResponseHandler(ProxyHttpResponseHandler)to register a Proxy response handler. The handler will be notified of responses being processed by the Proxy tool. Extensions can perform custom analysis or modification of these responses, and control in-UI message interception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseInitialInterceptResulthandleReceivedResponse(InterceptedHttpResponse interceptedResponse, HttpRequest initiatingRequest, Annotations annotations)This method is invoked when an HTTP response is received in the Proxy.ResponseFinalInterceptResulthandleResponseToReturn(InterceptedHttpResponse interceptedResponse, HttpRequest initiatingRequest, Annotations annotations)This method is invoked when an HTTP response has been processed by the Proxy before it is returned to the client.
-
-
-
Method Detail
-
handleReceivedResponse
ResponseInitialInterceptResult handleReceivedResponse(InterceptedHttpResponse interceptedResponse, HttpRequest initiatingRequest, Annotations annotations)
This method is invoked when an HTTP response is received in the Proxy.- Parameters:
interceptedResponse- AnInterceptedHttpResponseobject that extensions can use to query and update details of the response, and control whether the response should be intercepted and displayed to the user for manual review or modification.initiatingRequest- TheHttpRequestthat was issued.annotations- TheAnnotationsfor the intercepted request.- Returns:
- The
ResponseInitialInterceptResultcontaining the required action, HTTP response and annotations to be passed through.
-
handleResponseToReturn
ResponseFinalInterceptResult handleResponseToReturn(InterceptedHttpResponse interceptedResponse, HttpRequest initiatingRequest, Annotations annotations)
This method is invoked when an HTTP response has been processed by the Proxy before it is returned to the client.- Parameters:
interceptedResponse- AnInterceptedHttpResponseobject that extensions can use to query and update details of the response.initiatingRequest- TheHttpRequestthat was issued.annotations- TheAnnotationsfor the intercepted request.- Returns:
- The
ResponseFinalInterceptResultcontaining the required action, HTTP response and annotations to be passed through.
-
-