Class InternalUnsupportedHttpClient.Response

java.lang.Object
com.couchbase.analytics.client.java.InternalUnsupportedHttpClient.Response
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
InternalUnsupportedHttpClient

public static class InternalUnsupportedHttpClient.Response extends Object implements Closeable
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • httpStatusCode

      public int httpStatusCode()
    • bodyInputStream

      public @Nullable InputStream 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

      public @Nullable String 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.