Package dev.relism.flash.http2.message
Class Http2RequestBody
java.lang.Object
java.io.InputStream
dev.relism.flash.http2.message.Http2RequestBody
- All Implemented Interfaces:
BodyCompletion,Closeable,AutoCloseable
Reusable request-body source fed by the connection demultiplexer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(long declaredLength, boolean inlineMode, Http2RequestBody.ConsumptionListener listener) intcancel()longvoidfinish(int streamId) booleanvoidoffer(int streamId, byte[] source, int offset, int length, int flowControlledBytes) intread()intread(byte[] target, int offset, int length) Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
Http2RequestBody
-
-
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
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
fullyRead
public boolean fullyRead()- Specified by:
fullyReadin interfaceBodyCompletion
-