Package burp.api.montoya.http.message
Interface HttpRequestResponse
-
- All Known Subinterfaces:
MarkedHttpRequestResponse
public interface HttpRequestResponseThis interface is used to define a coupling betweenHttpRequestandHttpResponseinterfaces.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpRequesthttpRequest()static HttpRequestResponsehttpRequestResponse(HttpRequest request, HttpResponse response)This is a helper method to create a new instance ofHttpRequestResponse.static HttpRequestResponsehttpRequestResponse(HttpRequest httpRequest, HttpResponse httpResponse, Annotations annotations)This is a helper method to create a new instance ofHttpRequestResponse.HttpResponsehttpResponse()AnnotationsmessageAnnotations()MarkedHttpRequestResponsewithMarkers(java.util.List<Range> requestMarkers, java.util.List<Range> responseMarkers)This is a helper method used to add markers to theHttpRequestResponseinstance.HttpRequestResponsewithMessageAnnotations(Annotations annotations)This is a helper method used to add annotations to theHttpRequestResponseinstance.MarkedHttpRequestResponsewithNoMarkers()This is a helper method used to build aMarkedHttpRequestResponseinstance with no markers.MarkedHttpRequestResponsewithRequestMarkers(Range... requestMarkers)This is a helper method used to add request markers to theHttpRequestResponseinstance.MarkedHttpRequestResponsewithRequestMarkers(java.util.List<Range> requestMarkers)This is a helper method used to add request markers to theHttpRequestResponseinstance.MarkedHttpRequestResponsewithResponseMarkers(Range... responseMarkers)This is a helper method used to add response markers to theHttpRequestResponseinstance.MarkedHttpRequestResponsewithResponseMarkers(java.util.List<Range> responseMarkers)This is a helper method used to add response markers to theHttpRequestResponseinstance.
-
-
-
Method Detail
-
httpRequestResponse
static HttpRequestResponse httpRequestResponse(HttpRequest request, HttpResponse response)
This is a helper method to create a new instance ofHttpRequestResponse.- Parameters:
request- The HTTP request.response- The HTTP response.- Returns:
- A new
HttpRequestResponseinstance.
-
httpRequestResponse
static HttpRequestResponse httpRequestResponse(HttpRequest httpRequest, HttpResponse httpResponse, Annotations annotations)
This is a helper method to create a new instance ofHttpRequestResponse.- Parameters:
httpRequest- The HTTP request.httpResponse- The HTTP response.annotations- annotations.- Returns:
- A new
HttpRequestResponseinstance.
-
httpRequest
HttpRequest httpRequest()
- Returns:
- The HTTP request message.
-
httpResponse
HttpResponse httpResponse()
- Returns:
- The HTTP response message.
-
messageAnnotations
Annotations messageAnnotations()
- Returns:
- The annotations.
-
withMessageAnnotations
HttpRequestResponse withMessageAnnotations(Annotations annotations)
This is a helper method used to add annotations to theHttpRequestResponseinstance.- Parameters:
annotations- annotations to add.- Returns:
- A new
HttpRequestResponseinstance.
-
withMarkers
MarkedHttpRequestResponse withMarkers(java.util.List<Range> requestMarkers, java.util.List<Range> responseMarkers)
This is a helper method used to add markers to theHttpRequestResponseinstance.- Parameters:
requestMarkers- Request markers to add.responseMarkers- Response markers to add.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
withRequestMarkers
MarkedHttpRequestResponse withRequestMarkers(java.util.List<Range> requestMarkers)
This is a helper method used to add request markers to theHttpRequestResponseinstance.- Parameters:
requestMarkers- Request markers to add.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
withRequestMarkers
MarkedHttpRequestResponse withRequestMarkers(Range... requestMarkers)
This is a helper method used to add request markers to theHttpRequestResponseinstance.- Parameters:
requestMarkers- Request markers to add.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
withResponseMarkers
MarkedHttpRequestResponse withResponseMarkers(java.util.List<Range> responseMarkers)
This is a helper method used to add response markers to theHttpRequestResponseinstance.- Parameters:
responseMarkers- Response markers to add.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
withResponseMarkers
MarkedHttpRequestResponse withResponseMarkers(Range... responseMarkers)
This is a helper method used to add response markers to theHttpRequestResponseinstance.- Parameters:
responseMarkers- Response markers to add.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
withNoMarkers
MarkedHttpRequestResponse withNoMarkers()
This is a helper method used to build aMarkedHttpRequestResponseinstance with no markers.- Returns:
- A new
MarkedHttpRequestResponseinstance.
-
-