Package io.confluent.ksql.api.client
Interface Client.HttpResponse
-
- Enclosing interface:
- Client
public static interface Client.HttpResponse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
body()
<T> Map<String,T>
bodyAsMap()
Parse and return JSON response as aMap
.int
status()
-
-
-
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 aMap
.- Type Parameters:
T
- the type of the values in the returned map.- Returns:
- the parsed response
- Throws:
KsqlClientException
- if response could not be parsed.
-
-