Package burp

Interface IResponseInfo


  • public interface IResponseInfo
    This interface is used to retrieve key details about an HTTP response. Extensions can obtain an IResponseInfo object for a given response by calling IExtensionHelpers.analyzeResponse().
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getBodyOffset()
      This method is used to obtain the offset within the response where the message body begins.
      java.util.List<ICookie> getCookies()
      This method is used to obtain details of the HTTP cookies set in the response.
      java.util.List<java.lang.String> getHeaders()
      This method is used to obtain the HTTP headers contained in the response.
      java.lang.String getInferredMimeType()
      This method is used to obtain the MIME type of the response, as inferred from the contents of the HTTP message body.
      java.lang.String getStatedMimeType()
      This method is used to obtain the MIME type of the response, as stated in the HTTP headers.
      short getStatusCode()
      This method is used to obtain the HTTP status code contained in the response.
    • Method Detail

      • getHeaders

        java.util.List<java.lang.String> getHeaders()
        This method is used to obtain the HTTP headers contained in the response.
        Returns:
        The HTTP headers contained in the response.
      • getBodyOffset

        int getBodyOffset()
        This method is used to obtain the offset within the response where the message body begins.
        Returns:
        The offset within the response where the message body begins.
      • getStatusCode

        short getStatusCode()
        This method is used to obtain the HTTP status code contained in the response.
        Returns:
        The HTTP status code contained in the response.
      • getCookies

        java.util.List<ICookie> getCookies()
        This method is used to obtain details of the HTTP cookies set in the response.
        Returns:
        A list of ICookie objects representing the cookies set in the response, if any.
      • getStatedMimeType

        java.lang.String getStatedMimeType()
        This method is used to obtain the MIME type of the response, as stated in the HTTP headers.
        Returns:
        A textual label for the stated MIME type, or an empty String if this is not known or recognized. The possible labels are the same as those used in the main Burp UI.
      • getInferredMimeType

        java.lang.String getInferredMimeType()
        This method is used to obtain the MIME type of the response, as inferred from the contents of the HTTP message body.
        Returns:
        A textual label for the inferred MIME type, or an empty String if this is not known or recognized. The possible labels are the same as those used in the main Burp UI.