Interface HttpHandler


  • public interface HttpHandler
    Extensions can implement this interface and then call Http.registerHttpHandler(burp.api.montoya.http.HttpHandler) to register an HTTP handler. The handler will be notified of requests and responses made and received by any Burp tool. Extensions can perform custom analysis or modification of these messages by registering an HTTP handler.
    • Method Detail

      • handleHttpRequest

        RequestResult handleHttpRequest​(HttpRequest request,
                                        Annotations annotations,
                                        ToolSource toolSource)
        This method is invoked by Burp when an HTTP request is about to be issued.
        Parameters:
        request - The HTTP request that is about to be sent.
        annotations - annotations.
        toolSource - Indicates which Burp tool issued the request.
        Returns:
        An instance of RequestResult.
      • handleHttpResponse

        ResponseResult handleHttpResponse​(HttpResponse response,
                                          HttpRequest initiatingRequest,
                                          Annotations annotations,
                                          ToolSource toolSource)
        This method is invoked by Burp when an HTTP response has been received.
        Parameters:
        response - The HTTP response that was received.
        initiatingRequest - The HTTP request that was issued.
        annotations - annotations.
        toolSource - Indicates which Burp tool issued the request.
        Returns:
        An instance of ResponseResult.