Interface Client.HttpResponse

Enclosing interface:
Client

public static interface Client.HttpResponse
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    <T> Map<String,T>
    Parse and return JSON response as a Map.
    int
     
  • Method Details

    • 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.