Package org.mockserver.model
Interface HttpObject<T extends HttpObject,B extends Body>
-
- All Known Implementing Classes:
HttpRequest
,HttpResponse
public interface HttpObject<T extends HttpObject,B extends Body>
- Author:
- jamesdbloom
-
-
Method Summary
-
-
-
Method Detail
-
withBody
T withBody(byte[] body)
-
getBody
B getBody()
-
getBodyAsRawBytes
byte[] getBodyAsRawBytes()
-
getBodyAsString
String getBodyAsString()
-
getHeaders
Headers getHeaders()
-
withHeader
T withHeader(NottableString name, NottableString... values)
-
containsHeader
boolean containsHeader(String name)
-
removeHeader
T removeHeader(NottableString name)
-
getCookies
Cookies getCookies()
-
withCookie
T withCookie(NottableString name, NottableString value)
-
-