Package burp.api.montoya.http.message
Interface HttpMessage
-
- All Known Subinterfaces:
HttpRequest,HttpResponse,InterceptedHttpRequest,InterceptedHttpResponse
public interface HttpMessageThis interface is used to retrieve common information shared byHttpRequestandHttpResponseinterfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteArrayasBytes()This method is used to get the message as a byte array.ByteArraybody()This method is used to get the body of a message as a byte array.java.lang.StringbodyAsString()This method is used to get the body of a message as aString.intbodyOffset()This method is used to obtain the offset within the message where the message body begins.java.util.List<HttpHeader>headers()This method is used to obtain the HTTP headers contained in the message.java.lang.StringtoString()This method is used to get the message as aString.
-
-
-
Method Detail
-
headers
java.util.List<HttpHeader> headers()
This method is used to obtain the HTTP headers contained in the message.- Returns:
- A list of HTTP headers.
-
bodyOffset
int bodyOffset()
This method is used to obtain the offset within the message where the message body begins.- Returns:
- The message body offset.
-
asBytes
ByteArray asBytes()
This method is used to get the message as a byte array.- Returns:
- The message as a byte array.
-
toString
java.lang.String toString()
This method is used to get the message as aString.- Overrides:
toStringin classjava.lang.Object- Returns:
- The message as a
String.
-
body
ByteArray body()
This method is used to get the body of a message as a byte array.- Returns:
- The body of a message as a byte array.
-
bodyAsString
java.lang.String bodyAsString()
This method is used to get the body of a message as aString.- Returns:
- The body of a message as a
String.
-
-