Class InternalUnsupportedHttpClient.Response
java.lang.Object
com.couchbase.analytics.client.java.InternalUnsupportedHttpClient.Response
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
InternalUnsupportedHttpClient
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the response body as a string, or null if the response does not have a body.@Nullable InputStreamReturns an input stream over the bytes of the body, or null if the response does not have a body.voidclose()int
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
httpStatusCode
public int httpStatusCode() -
bodyInputStream
Returns an input stream over the bytes of the body, or null if the response does not have a body.Must not be called more than once.
-
bodyAsString
Returns the response body as a string, or null if the response does not have a body.- Throws:
UncheckedIOException- if there was an error reading the response body.
-