Package burp.api.montoya.http
Interface Http
-
public interface HttpThis interface is used to access HTTP related functionality of Burp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CookieJarcookieJar()This method is used to access the Cookie Jar.ResponseKeywordsAnalyzercreateResponseKeywordsAnalyzer(java.util.List<java.lang.String> keywords)This method is used to create a new response keyword analyzer.ResponseVariationsAnalyzercreateResponseVariationsAnalyzer()This method is used to create a new response variations analyzer.default HttpRequestResponseissueRequest(HttpRequest request)This method can be used to issue HTTP requests and retrieve their responses.default HttpRequestResponseissueRequest(HttpRequest request, HttpMode httpMode)This method can be used to issue HTTP requests and retrieve their responses.HttpRequestResponseissueRequest(HttpRequest request, HttpMode httpMode, java.lang.String connectionId)This method can be used to issue HTTP requests and retrieve their responses.RegistrationregisterHttpHandler(HttpHandler handler)This method is used to register a handler which will perform an action when a request is about to be issued or a response was received by any Burp tool.RegistrationregisterSessionHandlingAction(SessionHandlingAction action)This method is used to register a custom session handling action.
-
-
-
Method Detail
-
registerHttpHandler
Registration registerHttpHandler(HttpHandler handler)
This method is used to register a handler which will perform an action when a request is about to be issued or a response was received by any Burp tool.- Parameters:
handler- An object created by the extension that implementsHttpHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
registerSessionHandlingAction
Registration registerSessionHandlingAction(SessionHandlingAction action)
This method is used to register a custom session handling action. Each registered action will be available within the session handling rule UI for the user to select as a rule action. Users can choose to invoke an action directly in its own right, or following execution of a macro.- Parameters:
action- An object created by the extension that implementsSessionHandlingActioninterface.- Returns:
- The
Registrationfor the handler.
-
issueRequest
default HttpRequestResponse issueRequest(HttpRequest request)
This method can be used to issue HTTP requests and retrieve their responses.- Parameters:
request- The full HTTP request.- Returns:
- An object that implements the
HttpRequestResponseinterface, and which the extension can query to obtain the details of the response.
-
issueRequest
default HttpRequestResponse issueRequest(HttpRequest request, HttpMode httpMode)
This method can be used to issue HTTP requests and retrieve their responses.- Parameters:
request- The full HTTP request.httpMode- AnHttpModeenum value which indicates how a request should be sent.- Returns:
- An object that implements the
HttpRequestResponseinterface, and which the extension can query to obtain the details of the response.
-
issueRequest
HttpRequestResponse issueRequest(HttpRequest request, HttpMode httpMode, java.lang.String connectionId)
This method can be used to issue HTTP requests and retrieve their responses.- Parameters:
request- The full HTTP request.httpMode- AnHttpModeenum value which indicates how a request should be sent.connectionId- The identifier for the connection you want to use.- Returns:
- An object that implements the
HttpRequestResponseinterface, and which the extension can query to obtain the details of the response.
-
createResponseKeywordsAnalyzer
ResponseKeywordsAnalyzer createResponseKeywordsAnalyzer(java.util.List<java.lang.String> keywords)
This method is used to create a new response keyword analyzer.- Parameters:
keywords- A list of keywords the analyzer will look for.- Returns:
- A new
ResponseKeywordsAnalyzerinstance.
-
createResponseVariationsAnalyzer
ResponseVariationsAnalyzer createResponseVariationsAnalyzer()
This method is used to create a new response variations analyzer.- Returns:
- A new
ResponseKeywordsAnalyzerinstance.
-
-