- All Known Implementing Classes:
Http2ClientStream
public interface Http2Stream
HTTP/2 stream.
A stream represents a single request/response exchange in HTTP/2.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
data
(Http2FrameHeader header, BufferData data, boolean endOfStream) Data frame.Outbound flow control of this stream.void
headers
(Http2Headers headers, boolean endOfStream) Headers received.void
priority
(Http2Priority http2Priority) Priority.boolean
rstStream
(Http2RstStream rstStream) Close the stream.int
streamId()
Stream ID.State of this stream.void
windowUpdate
(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
-