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 Modifier and Type Interface Description static class
MkAnswer.Simple
Simple implementation.
-
-
-
Method Detail
-
status
int status()
HTTP response status.- Returns:
- The status code
-
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
-
-