Interface Client.HttpResponse

  • Enclosing interface:
    Client

    public static interface Client.HttpResponse
    • Method Detail

      • status

        int status()
        Returns:
        the status code of the HTTP response.
      • body

        byte[] body()
        Returns:
        response payload as a byte array.
      • bodyAsMap

        <T> Map<String,​T> bodyAsMap()
        Parse and return JSON response as a Map.
        Type Parameters:
        T - the type of the values in the returned map.
        Returns:
        the parsed response
        Throws:
        KsqlClientException - if response could not be parsed.