Package com.jcabi.http.mock
Interface MkAnswer
- All Known Implementing Classes:
MkAnswer.Simple
@Immutable
public interface MkAnswer
Mock response.
- Since:
- 0.10
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
status
int status()HTTP response status.- Returns:
- The status code
-
headers
HTTP response headers.- Returns:
- The headers
-
body
String body()HTTP response body.- Returns:
- The body, as a UTF-8 string
-
bodyBytes
byte[] bodyBytes()HTTP response body as bytes.- Returns:
- The body, as byte array
-