Interface MkAnswer

  • All Known Implementing Classes:
    MkAnswer.Simple

    @Immutable
    public interface MkAnswer
    Mock response.
    Since:
    0.10
    • 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