Class Http2RequestBody

java.lang.Object
java.io.InputStream
dev.relism.flash.http2.message.Http2RequestBody
All Implemented Interfaces:
BodyCompletion, Closeable, AutoCloseable

public final class Http2RequestBody extends InputStream implements BodyCompletion
Reusable request-body source fed by the connection demultiplexer.
  • Constructor Details

  • Method Details

    • begin

      public void begin(long declaredLength, boolean inlineMode, Http2RequestBody.ConsumptionListener listener)
    • offer

      public void offer(int streamId, byte[] source, int offset, int length, int flowControlledBytes)
    • finish

      public void finish(int streamId)
    • cancel

      public int cancel()
    • declaredLength

      public long declaredLength()
    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] target, int offset, int length) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • fullyRead

      public boolean fullyRead()
      Specified by:
      fullyRead in interface BodyCompletion