- All Known Implementing Classes:
Http2ConnectionWriter
public interface Http2StreamWriter
Writer for a single stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(Http2FrameData frame) Write a frame.void
writeData
(Http2FrameData frame, FlowControl.Outbound flowControl) Write a frame with flow control.int
writeHeaders
(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, FlowControl.Outbound flowControl) Write headers with no (or streaming) entity.int
writeHeaders
(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, Http2FrameData dataFrame, FlowControl.Outbound flowControl) Write headers and entity.
-
Method Details
-
write
Write a frame.- Parameters:
frame
- frame to write
-
writeData
Write a frame with flow control.- Parameters:
frame
- data frameflowControl
- outbound flow control
-
writeHeaders
int writeHeaders(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, FlowControl.Outbound flowControl) Write headers with no (or streaming) entity.- Parameters:
headers
- headersstreamId
- stream IDflags
- flags to useflowControl
- flow control- Returns:
- number of bytes written
-
writeHeaders
int writeHeaders(Http2Headers headers, int streamId, Http2Flag.HeaderFlags flags, Http2FrameData dataFrame, FlowControl.Outbound flowControl) Write headers and entity.- Parameters:
headers
- headersstreamId
- stream IDflags
- header flagsdataFrame
- data frameflowControl
- flow control- Returns:
- number of bytes written
-