Interface ProxyRequestToBeSentAction
public interface ProxyRequestToBeSentAction
Extensions can implement this interface when returning a result from
ProxyRequestHandler.handleRequestToBeSent(InterceptedRequest).-
Method Summary
Modifier and TypeMethodDescriptionaction()This method retrieves the current final intercept action.This method retrieves the annotations for the current request after any modifications by the extension.static ProxyRequestToBeSentActioncontinueWith(HttpRequest request) This method can be used to create a result that causes Burp Proxy to forward the request.
Annotations are not modified.static ProxyRequestToBeSentActioncontinueWith(HttpRequest request, Annotations annotations) This method can be used to create a result that causes Burp Proxy to forward the request.static ProxyRequestToBeSentActiondrop()This method can be used to create a result that causes Burp Proxy to drop the request.static ProxyRequestToBeSentActionproxyRequestToBeSentAction(HttpRequest request, Annotations annotations, MessageToBeSentAction action) This method can be used to create a default implementation of a final 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
MessageToBeSentAction action()This method retrieves the current final intercept action.- Returns:
- The
MessageToBeSentAction.
-
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 forward the request.
Annotations are not modified.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.- Returns:
- The
ProxyRequestToBeSentActionthat causes Burp Proxy to forward the request.
-
continueWith
This method can be used to create a result that causes Burp Proxy to forward the request.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
ProxyRequestToBeSentActionthat causes Burp Proxy to forward the request.
-
drop
This method can be used to create a result that causes Burp Proxy to drop the request.- Returns:
- The
ProxyRequestToBeSentActionthat causes Burp Proxy to drop the request.
-
proxyRequestToBeSentAction
static ProxyRequestToBeSentAction proxyRequestToBeSentAction(HttpRequest request, Annotations annotations, MessageToBeSentAction action) This method can be used to create a default implementation of a final intercept result for an HTTP request.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.nullvalue will leave the annotations unmodified.action- TheMessageToBeSentActionfor the HTTP request.- Returns:
- The
ProxyRequestToBeSentActionincluding the HTTP request, annotations and final intercept action.
-