- All Known Implementing Classes:
Response
public interface IResponse
An interface for
Response
. Built
to enable easier testing on web handlers.-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBody()
Returns the bytes of the Response body being sent to the clientAny extra headers set on the Response by the developerTheStatusLine.StatusCode
set by the developer for this Response.
-
Method Details
-
getExtraHeaders
Any extra headers set on the Response by the developer -
getStatusCode
StatusLine.StatusCode getStatusCode()TheStatusLine.StatusCode
set by the developer for this Response. -
getBody
byte[] getBody()Returns the bytes of the Response body being sent to the client
-