Interface ProxyResponseToBeSentAction
public interface ProxyResponseToBeSentAction
Extensions can implement this interface when returning a result from
ProxyResponseHandler.handleResponseToBeSent(InterceptedResponse).-
Method Summary
Modifier and TypeMethodDescriptionaction()This method retrieves the current final intercept action.This method retrieves the annotations for the current response after any modifications by the extension.static ProxyResponseToBeSentActioncontinueWith(HttpResponse response) This method can be used to create a result that causes Burp Proxy to forward the response.
Annotations are not modified.static ProxyResponseToBeSentActioncontinueWith(HttpResponse response, Annotations annotations) This method can be used to create a result that causes Burp Proxy to forward the response.static ProxyResponseToBeSentActiondrop()This method can be used to create a result that causes Burp Proxy to drop the response.static ProxyResponseToBeSentActionproxyResponseToReturnAction(HttpResponse response, Annotations annotations, MessageToBeSentAction action) This method can be used to create a default implementation of a final intercept result for an HTTP response.response()This method retrieves the current HTTP response to forward after any modifications by the extension.
-
Method Details
-
action
MessageToBeSentAction action()This method retrieves the current final intercept action.- Returns:
- The
MessageToBeSentAction.
-
response
HttpResponse response()This method retrieves the current HTTP response to forward after any modifications by the extension.- Returns:
- The
HttpResponseto forward after any modifications by the extension.
-
annotations
Annotations annotations()This method retrieves the annotations for the current response after any modifications by the extension.- Returns:
- The
Annotationsfor the intercepted HTTP response.
-
continueWith
This method can be used to create a result that causes Burp Proxy to forward the response.
Annotations are not modified.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.- Returns:
- The
ProxyResponseToBeSentActionthat causes Burp Proxy to forward the response.
-
continueWith
This method can be used to create a result that causes Burp Proxy to forward the response.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.- Returns:
- The
ProxyResponseToBeSentActionthat causes Burp Proxy to forward the response.
-
drop
This method can be used to create a result that causes Burp Proxy to drop the response.- Returns:
- The
ProxyResponseToBeSentActionthat causes Burp Proxy to drop the response.
-
proxyResponseToReturnAction
static ProxyResponseToBeSentAction proxyResponseToReturnAction(HttpResponse response, Annotations annotations, MessageToBeSentAction action) This method can be used to create a default implementation of a final intercept result for an HTTP response.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.nullvalue will leave the annotations unmodified.action- TheMessageToBeSentActionfor the HTTP response.- Returns:
- The
ProxyResponseToBeSentActionincluding the HTTP response, annotations and final intercept action.
-