Interface ProxyHttpRequestResponse


public interface ProxyHttpRequestResponse
HTTP request and response intercepted by the Proxy.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method retrieves the annotations for the request/response pair.
    boolean
    contains(String searchTerm, boolean caseSensitive)
    Searches the data in the HTTP request and response for the specified search term.
    boolean
    contains(Pattern pattern)
    Searches the data in the HTTP request and response for the specified regular expression.
    boolean
     
    This method retrieves the HTTP request that was sent by Burp Proxy.
    boolean
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() httpService instead.
    HTTP service for the request.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() httpService instead.
    int
    Returns the proxy listener port used for the request/response.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() method instead.
    Obtain the MIME type of the response or request, as determined by Burp Suite.
    This method retrieves the HTTP response that was received by Burp Proxy.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() path instead.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() httpService instead.
    This method retrieves the HTTP request that was sent by Burp Proxy.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() body instead.
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() httpVersion instead.
    This method retrieves the HTTP response that was received by Burp Proxy.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    use finalRequest() httpService instead.
    Returns the date and time at which Burp Proxy received the request.
    Retrieve the timing data associated with this request and response.
    url()
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • request

      HttpRequest request()
      This method retrieves the HTTP request that was sent by Burp Proxy.
      Returns:
      The HttpRequest that was sent by Burp Proxy.
      See Also:
    • finalRequest

      HttpRequest finalRequest()
      This method retrieves the HTTP request that was sent by Burp Proxy.
      Returns:
      The HttpRequest that was sent by Burp Proxy.
    • response

      HttpResponse response()
      This method retrieves the HTTP response that was received by Burp Proxy.
      Returns:
      The HttpResponse that was received by Burp Proxy.
      See Also:
    • originalResponse

      HttpResponse originalResponse()
      This method retrieves the HTTP response that was received by Burp Proxy.
      Returns:
      The HttpResponse that was received by Burp Proxy.
    • annotations

      Annotations annotations()
      This method retrieves the annotations for the request/response pair.
      Returns:
      The Annotations for the request/response pair.
    • httpService

      HttpService httpService()
      HTTP service for the request.
      Returns:
      An HttpService object containing details of the HTTP service.
    • url

      Deprecated, for removal: This API element is subject to removal in a future version.
      URL for the issued final request. If the request is malformed, then a MalformedRequestException is thrown.
      Returns:
      The URL in the request.
      Throws:
      MalformedRequestException - if request is malformed.
    • method

      @Deprecated(forRemoval=true) String method()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() method instead.
      HTTP method for the issued final request. If the request is malformed, then a MalformedRequestException is thrown.
      Returns:
      The HTTP method used in the request.
      Throws:
      MalformedRequestException - if request is malformed.
    • path

      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() path instead.
      Path and File for the issued final request. If the request is malformed, then a MalformedRequestException is thrown.
      Returns:
      the path and file in the request
      Throws:
      MalformedRequestException - if request is malformed.
    • host

      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() httpService instead.
      Returns:
      The hostname or IP address for the service.
    • port

      @Deprecated(forRemoval=true) int port()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() httpService instead.
      Returns:
      The port number for the service.
    • secure

      @Deprecated(forRemoval=true) boolean secure()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() httpService instead.
      Returns:
      True is a secure protocol is used for the connection, false otherwise.
    • httpServiceString

      @Deprecated(forRemoval=true) String httpServiceString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() httpService instead.
      Returns:
      The String representation of the service.
    • requestHttpVersion

      @Deprecated(forRemoval=true) String requestHttpVersion()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() httpVersion instead.
      HTTP Version text parsed from the request line for HTTP 1 messages. HTTP 2 messages will return "HTTP/2"
      Returns:
      Version string
    • requestBody

      @Deprecated(forRemoval=true) String requestBody()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use finalRequest() body instead.
      Body of the issued final request
      Returns:
      The body of a message as a String.
    • edited

      boolean edited()
      Returns:
      True if the request or response was edited
    • time

      Returns the date and time at which Burp Proxy received the request.
      Returns:
      The time at which Burp Proxy received the request.
    • listenerPort

      int listenerPort()
      Returns the proxy listener port used for the request/response.
      Returns:
      the port number used by the proxy listener
    • mimeType

      MimeType mimeType()
      Obtain the MIME type of the response or request, as determined by Burp Suite. If there is no response the mime type will be determined from the request url.
      Returns:
      The MIME type.
    • hasResponse

      boolean hasResponse()
      Returns:
      True if there is a response.
    • contains

      boolean contains(String searchTerm, boolean caseSensitive)
      Searches the data in the HTTP request and response for the specified search term.
      Parameters:
      searchTerm - The value to be searched for.
      caseSensitive - Flags whether the search is case-sensitive.
      Returns:
      True if the search term is found.
    • contains

      boolean contains(Pattern pattern)
      Searches the data in the HTTP request and response for the specified regular expression.
      Parameters:
      pattern - The regular expression to be searched for.
      Returns:
      True if the pattern is matched.
    • timingData

      TimingData timingData()
      Retrieve the timing data associated with this request and response.
      Returns:
      The timing data.