Interface ProxyRequestReceivedAction
public interface ProxyRequestReceivedAction
Extensions can implement this interface when returning a result from
ProxyRequestHandler.handleRequestReceived(InterceptedRequest).-
Method Summary
Modifier and TypeMethodDescriptionaction()This method retrieves the current initial intercept action.This method retrieves the annotations for the current request after any modifications by the extension.static ProxyRequestReceivedActioncontinueWith(HttpRequest request) This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.
Annotations are not modified.static ProxyRequestReceivedActioncontinueWith(HttpRequest request, Annotations annotations) This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.static ProxyRequestReceivedActiondoNotIntercept(HttpRequest request) This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.static ProxyRequestReceivedActiondoNotIntercept(HttpRequest request, Annotations annotations) This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.static ProxyRequestReceivedActiondrop()This method can be used to create a result that causes Burp Proxy to drop the request.static ProxyRequestReceivedActionintercept(HttpRequest request) This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.
Annotations are not modified.static ProxyRequestReceivedActionintercept(HttpRequest request, Annotations annotations) This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.static ProxyRequestReceivedActionproxyRequestReceivedAction(HttpRequest request, Annotations annotations, MessageReceivedAction action) This method can be used to create a default implementation of an initial intercept result for an HTTP request.request()This method retrieves the current HTTP request to forward after any modifications by the extension.
-
Method Details
-
action
MessageReceivedAction action()This method retrieves the current initial intercept action.- Returns:
- The
MessageReceivedAction.
-
request
HttpRequest request()This method retrieves the current HTTP request to forward after any modifications by the extension.- Returns:
- The
HttpRequestto forward after any modifications by the extension.
-
annotations
Annotations annotations()This method retrieves the annotations for the current request after any modifications by the extension.- Returns:
- The
Annotationsfor the intercepted HTTP request.
-
continueWith
This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.
Annotations are not modified.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
ProxyRequestReceivedActionthat allows user rules to be followed.
-
continueWith
This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.
-
intercept
This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.
Annotations are not modified.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to present the request to the user for manual review or modification.
-
intercept
This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to present the request to the user for manual review or modification.
-
doNotIntercept
This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.
Annotations are not modified.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to forward the request without presenting it to the user.
-
doNotIntercept
This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to forward the request without presenting it to the user.
-
drop
This method can be used to create a result that causes Burp Proxy to drop the request.- Returns:
- The
ProxyRequestReceivedActionthat causes Burp Proxy to drop the request.
-
proxyRequestReceivedAction
static ProxyRequestReceivedAction proxyRequestReceivedAction(HttpRequest request, Annotations annotations, MessageReceivedAction action) This method can be used to create a default implementation of an initial intercept result for an HTTP request.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.nullvalue will leave the annotations unmodified.action- TheMessageReceivedActionfor the HTTP request.- Returns:
- The
ProxyRequestReceivedActionincluding the HTTP request, annotations and initial intercept action.
-