Class AsyncHttpClientStreamingResponseBody

java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
ru.tinkoff.kora.http.client.async.response.AsyncHttpClientStreamingResponseBody
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Flow.Publisher<ByteBuffer>, ru.tinkoff.kora.http.common.body.HttpBody, ru.tinkoff.kora.http.common.body.HttpBodyInput

public final class AsyncHttpClientStreamingResponseBody extends AtomicBoolean implements ru.tinkoff.kora.http.common.body.HttpBodyInput
See Also:
  • Constructor Details

    • AsyncHttpClientStreamingResponseBody

      public AsyncHttpClientStreamingResponseBody(io.netty.handler.codec.http.HttpHeaders headers, Flow.Publisher<ByteBuffer> bodyStream)
  • Method Details

    • contentLength

      public int contentLength()
      Specified by:
      contentLength in interface ru.tinkoff.kora.http.common.body.HttpBody
    • contentType

      @Nullable public String contentType()
      Specified by:
      contentType in interface ru.tinkoff.kora.http.common.body.HttpBody
    • subscribe

      public void subscribe(Flow.Subscriber<? super ByteBuffer> subscriber)
      Specified by:
      subscribe in interface Flow.Publisher<ByteBuffer>
      Specified by:
      subscribe in interface ru.tinkoff.kora.http.common.body.HttpBodyInput
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException