Class StreamingHttpBodyInput

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

public class StreamingHttpBodyInput extends AtomicBoolean implements HttpBodyInput
See Also:
  • Constructor Details

  • Method Details

    • subscribe

      public void subscribe(Flow.Subscriber<? super ByteBuffer> subscriber)
      Specified by:
      subscribe in interface Flow.Publisher<ByteBuffer>
      Specified by:
      subscribe in interface HttpBodyInput
    • close

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

      public long contentLength()
      Specified by:
      contentLength in interface HttpBody
      Returns:
      Русский: Возвращает длину тела запроса
      English: Returns the length of the body of the request
    • contentType

      @Nullable public String contentType()
      Specified by:
      contentType in interface HttpBody
      Returns:
      Русский: Возвращает тип тела запроса как значения HTTP заголовка
      English: Returns request body type as HTTP header values

      Пример / Example:
      application/json