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

Class that incapsulates frame building logic.
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

BuildDataFrame() public méthode

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.
Résultat System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame

BuildDataFrame() public méthode

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

BuildGoAwayFrame() public méthode

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.
Résultat System.ServiceModel.Http2Protocol.ProtocolFrames.GoAwayFrame

BuildHeadersFrame() public méthode

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.
Résultat ControlFrame

BuildPingFrame() public méthode

Builds the Ping frame.
public BuildPingFrame ( int streamId ) : ControlFrame
streamId int
Résultat ControlFrame

BuildRSTFrame() public méthode

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

BuildRSTFrame() public méthode

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

BuildSettingsFrame() public méthode

public BuildSettingsFrame ( Http2Stream stream ) : ControlFrame
stream Http2Stream
Résultat ControlFrame

BuildSynReplyFrame() public méthode

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

BuildSynReplyFrame() public méthode

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

BuildSynStreamFrame() public méthode

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.
Résultat ControlFrame

BuildSynStreamFrame() public méthode

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

BuildWindowUpdateFrame() public méthode

public BuildWindowUpdateFrame ( Http2Stream stream, Int64 deltaSize ) : WindowUpdateFrame
stream Http2Stream
deltaSize Int64
Résultat WindowUpdateFrame

BuildWindowUpdateFrame() public méthode

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