Interface HttpMessage

All Known Subinterfaces:
HttpRequest, HttpRequestToBeSent, HttpResponse, HttpResponseReceived, InterceptedRequest, InterceptedResponse

public interface HttpMessage
Burp message retrieve common information shared by HttpRequest and HttpResponse.
  • Method Details

    • headers

      List<HttpHeader> headers()
      HTTP headers contained in the message.
      Returns:
      A list of HTTP headers.
    • bodyOffset

      int bodyOffset()
      Offset within the message where the message body begins.
      Returns:
      The message body offset.
    • body

      ByteArray body()
      Body of a message as a byte array.
      Returns:
      The body of a message as a byte array.
    • bodyToString

      String bodyToString()
      Body of a message as a String.
      Returns:
      The body of a message as a String.
    • markers

      List<Marker> markers()
      Markers for the message.
      Returns:
      A list of markers.
    • toByteArray

      ByteArray toByteArray()
      Message as a byte array.
      Returns:
      The message as a byte array.
    • toString

      String toString()
      Message as a String.
      Overrides:
      toString in class Object
      Returns:
      The message as a String.