C# Class System.ServiceModel.Http2Protocol.ProtocolFrames.FrameBuilder

Class that incapsulates frame building logic.
Mostra file Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Public Methods

Method Description
BuildDataFrame ( Http2Stream stream, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildDataFrame ( Http2Stream stream, ProtocolData data, bool final ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildDataFrame ( int streamId, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

Builds the data frame.

BuildGoAwayFrame ( int lastSeenGoodStreamId, StatusCode reason ) : System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame

Builds the GoAway frame.

BuildHeadersFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame

Builds the headers frame.

BuildPingFrame ( int streamId ) : ControlFrame

Builds the Ping frame.

BuildRSTFrame ( Http2Stream stream, StatusCode reason ) : ControlFrame

Builds the RST Frame.

BuildRSTFrame ( int streamId, StatusCode reason ) : ControlFrame

Builds the RST Frame.

BuildSettingsFrame ( Http2Stream stream ) : ControlFrame
BuildSynReplyFrame ( Http2Stream stream, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_REPLY frame.

BuildSynReplyFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_REPLY frame.

BuildSynStreamFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame

Builds the SYN_STREAM frame.

BuildSynStreamFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the SYN_STREAM frame.

BuildWindowUpdateFrame ( Http2Stream stream, Int64 deltaSize ) : WindowUpdateFrame
BuildWindowUpdateFrame ( int streamId, Int64 deltaSize ) : WindowUpdateFrame

Builds the WindowUpdate Frame.

Private Methods

Method Description
BuildControlFrame ( FrameType type, Http2Stream stream, ProtocolHeaders headers ) : ControlFrame

Builds the control frame.

BuildControlFrame ( FrameType type, int streamId, ProtocolHeaders headers ) : ControlFrame

Builds the control frame.

Method Details

BuildDataFrame() public method

Builds the data frame.
public BuildDataFrame ( Http2Stream stream, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
stream Http2Stream The stream.
data ProtocolData The data.
return System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildDataFrame() public method

Builds the data frame.
public BuildDataFrame ( Http2Stream stream, ProtocolData data, bool final ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
stream Http2Stream The stream.
data ProtocolData The data.
final bool if set to true than this frame is final for the stream.
return System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildDataFrame() public method

Builds the data frame.
public BuildDataFrame ( int streamId, ProtocolData data ) : System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame
streamId int The stream id.
data ProtocolData The data.
return System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildGoAwayFrame() public method

Builds the GoAway frame.
public BuildGoAwayFrame ( int lastSeenGoodStreamId, StatusCode reason ) : System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame
lastSeenGoodStreamId int The last seen good stream id.
reason StatusCode The reason of GoAway.
return System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame

BuildHeadersFrame() public method

Builds the headers frame.
public BuildHeadersFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
final bool if set to true than this frame is final for the stream.
return ControlFrame

BuildPingFrame() public method

Builds the Ping frame.
public BuildPingFrame ( int streamId ) : ControlFrame
streamId int
return ControlFrame

BuildRSTFrame() public method

Builds the RST Frame.
public BuildRSTFrame ( Http2Stream stream, StatusCode reason ) : ControlFrame
stream Http2Stream The stream.
reason StatusCode The reason for RST.
return ControlFrame

BuildRSTFrame() public method

Builds the RST Frame.
public BuildRSTFrame ( int streamId, StatusCode reason ) : ControlFrame
streamId int The stream id.
reason StatusCode The reason for RST.
return ControlFrame

BuildSettingsFrame() public method

public BuildSettingsFrame ( Http2Stream stream ) : ControlFrame
stream Http2Stream
return ControlFrame

BuildSynReplyFrame() public method

Builds the SYN_REPLY frame.
public BuildSynReplyFrame ( Http2Stream stream, ProtocolHeaders headers ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
return ControlFrame

BuildSynReplyFrame() public method

Builds the SYN_REPLY frame.
public BuildSynReplyFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame
streamId int The stream id.
headers ProtocolHeaders The headers.
return ControlFrame

BuildSynStreamFrame() public method

Builds the SYN_STREAM frame.
public BuildSynStreamFrame ( Http2Stream stream, ProtocolHeaders headers, bool final ) : ControlFrame
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
final bool Indicates that stream is not going to send any more data.
return ControlFrame

BuildSynStreamFrame() public method

Builds the SYN_STREAM frame.
public BuildSynStreamFrame ( int streamId, ProtocolHeaders headers ) : ControlFrame
streamId int The stream id.
headers ProtocolHeaders The headers.
return ControlFrame

BuildWindowUpdateFrame() public method

public BuildWindowUpdateFrame ( Http2Stream stream, Int64 deltaSize ) : WindowUpdateFrame
stream Http2Stream
deltaSize Int64
return WindowUpdateFrame

BuildWindowUpdateFrame() public method

Builds the WindowUpdate Frame.
public BuildWindowUpdateFrame ( int streamId, Int64 deltaSize ) : WindowUpdateFrame
streamId int
deltaSize Int64
return WindowUpdateFrame