Interface RequestInitialInterceptResult

    • Method Detail

      • intercept

        static RequestInitialInterceptResult intercept​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        Returns:
        The RequestInitialInterceptResult that causes Burp Proxy to present the request to the user for manual review or modification.
      • intercept

        static RequestInitialInterceptResult intercept​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        annotations - The Annotations for the intercepted HTTP request.
        Returns:
        The RequestInitialInterceptResult that causes Burp Proxy to present the request to the user for manual review or modification.
      • doNotIntercept

        static RequestInitialInterceptResult doNotIntercept​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        Returns:
        The RequestInitialInterceptResult that causes Burp Proxy to forward the request without presenting it to the user.
      • doNotIntercept

        static RequestInitialInterceptResult doNotIntercept​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        annotations - The Annotations for the intercepted HTTP request.
        Returns:
        The RequestInitialInterceptResult that causes Burp Proxy to forward the request without presenting it to the user.
      • followUserRules

        static RequestInitialInterceptResult followUserRules​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        Returns:
        The RequestInitialInterceptResult that allows user rules to be followed.
      • followUserRules

        static RequestInitialInterceptResult followUserRules​(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.
        Parameters:
        request - The HttpRequest received after any modifications by the extension.
        annotations - The Annotations for the intercepted HTTP request.
        Returns:
        The RequestInitialInterceptResult that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.
      • request

        HttpRequest request()
        This method retrieves the current HTTP request to forward after any modifications by the extension.
        Returns:
        The HttpRequest to 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 Annotations for the intercepted HTTP request.