Interface RequestToBeSentAction
public interface RequestToBeSentAction
An instance of this interface should be returned by
HttpHandler.handleHttpRequestToBeSent(burp.api.montoya.http.handler.HttpRequestToBeSent) if a custom HttpHandler has been registered with Burp.-
Method Summary
Modifier and TypeMethodDescriptiondefault RequestActionaction()static RequestToBeSentActioncontinueWith(HttpRequest request) Create a new instance ofRequestToBeSentAction.static RequestToBeSentActioncontinueWith(HttpRequest request, Annotations annotations) Create a new instance ofRequestToBeSentAction.static RequestToBeSentActiondrop()Create a new instance ofRequestToBeSentActionwhich will cause the HTTP request to be dropped.static RequestToBeSentActiondrop(Annotations annotations) Create a new instance ofRequestToBeSentActionwhich will cause the HTTP request to be dropped.request()static RequestToBeSentActionspoof(HttpResponse httpResponse) Create a new instance ofRequestToBeSentActionwhich will suppress the HTTP request and returned the spoofed HTTP response.static RequestToBeSentActionspoof(HttpResponse httpResponse, Annotations annotations) Create a new instance ofRequestToBeSentActionwhich will suppress the HTTP request and returned the spoofed HTTP response.
-
Method Details
-
action
- Returns:
- the action.
-
request
HttpRequest request()- Returns:
- The HTTP request.
-
annotations
Annotations annotations()- Returns:
- The annotations.
-
continueWith
Create a new instance ofRequestToBeSentAction. Annotations will not be modified.- Parameters:
request- An HTTP request.- Returns:
- A new
RequestToBeSentActioninstance.
-
continueWith
Create a new instance ofRequestToBeSentAction.- Parameters:
request- An HTTP request.annotations- modified annotations.- Returns:
- A new
RequestToBeSentActioninstance.
-
drop
Create a new instance ofRequestToBeSentActionwhich will cause the HTTP request to be dropped. Annotations will not be modified.- Returns:
- A new
RequestToBeSentActioninstance.
-
drop
Create a new instance ofRequestToBeSentActionwhich will cause the HTTP request to be dropped.- Parameters:
annotations- modified annotations.- Returns:
- A new
RequestToBeSentActioninstance.
-
spoof
Create a new instance ofRequestToBeSentActionwhich will suppress the HTTP request and returned the spoofed HTTP response. Annotations will not be modified.- Parameters:
httpResponse- spoof response.- Returns:
- A new
RequestToBeSentActioninstance.
-
spoof
Create a new instance ofRequestToBeSentActionwhich will suppress the HTTP request and returned the spoofed HTTP response.- Parameters:
httpResponse- spoof response.annotations- modified annotations.- Returns:
- A new
RequestToBeSentActioninstance.
-