Class StreamResponse

  • All Implemented Interfaces:
    Response<java.io.InputStream>, java.io.Closeable, java.lang.AutoCloseable

    public final class StreamResponse
    extends SimpleResponse<java.io.InputStream>
    implements java.io.Closeable
    REST response with a streaming content.
    • Constructor Detail

      • StreamResponse

        public StreamResponse​(com.azure.android.core.http.HttpRequest request,
                              int statusCode,
                              com.azure.android.core.http.HttpHeaders headers,
                              java.io.InputStream value)
        Creates a StreamResponse.
        Parameters:
        request - The request which resulted in this response.
        statusCode - The status code of the HTTP response.
        headers - The headers of the HTTP response.
        value - The content of the HTTP response.
    • Method Detail

      • close

        public void close()
        Disposes the connection associated with this StreamResponse.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable