- All Known Implementing Classes:
Http2Stream
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) Data frame.Outbound flow control of this stream.voidheaders(Http2Headers headers, boolean endOfStream) Headers received.voidpriority(Http2Priority http2Priority) Priority.voidrstStream(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
-
windowUpdate
Flow control window update.- Parameters:
windowUpdate- window update frame
-
headers
Headers received.- Parameters:
headers- request headersendOfStream- whether these headers are the last data that would be received
-
data
Data frame.- Parameters:
header- frame headerdata- frame data
-
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
-