Package burp.api.montoya.http.message
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 Summary
Modifier and TypeMethodDescriptionbody()Body of a message as a byte array.intOffset within the message where the message body begins.Body of a message as aString.headers()HTTP headers contained in the message.markers()Markers for the message.Message as a byte array.toString()Message as aString.
-
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 aString.- Returns:
- The body of a message as a
String.
-
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 aString.
-