public interface Http2Stream
HTTP/2 stream.
A stream represents a single request/response exchange in HTTP/2.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddata(Http2FrameHeader header, BufferData data, boolean endOfStream) Data frame.Outbound flow control of this stream.voidheaders(Http2Headers headers, boolean endOfStream) Headers received.voidpriority(Http2Priority http2Priority) Priority.booleanrstStream(Http2RstStream rstStream) Close the stream.intstreamId()Stream ID.State of this stream.voidwindowUpdate(Http2WindowUpdate windowUpdate) Flow control window update.
-
Method Details
-
rstStream
Close the stream.- Parameters:
rstStream- rst stream frame- Returns:
- true if rapid reset(rst received before any data are sent)
-
windowUpdate
Flow control window update.- Parameters:
windowUpdate- window update frame
-
headers
Headers received.- Parameters:
headers- headersendOfStream- whether these headers are the last data that would be received
-
data
Data frame.- Parameters:
header- frame headerdata- frame dataendOfStream- whether this is the last data that would be received
-
priority
Priority.- Parameters:
http2Priority- priority frame
-
streamId
int streamId()Stream ID.- Returns:
- id of this stream
-
streamState
Http2StreamState streamState()State of this stream.- Returns:
- state
-
flowControl
StreamFlowControl flowControl()Outbound flow control of this stream.- Returns:
- flow control
-