C# Class System.ServiceModel.Http2Protocol.Http2Stream

Http2 stream that runs inside Http2Protocol.
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

Closes the stream.

Close ( StatusCode reason ) : void

Closes the stream with specified reason.

Http2Stream ( int id, ProtocolSession session )

Initializes a new instance of the Http2Stream class.

SendData ( System.ServiceModel.Http2Protocol.ProtocolData data, bool isFin ) : void

Sends the data to the stream.

SendHeaders ( ProtocolHeaders headers, bool isFin ) : void

Sends the headers to the stream.

SendRST ( StatusCode reason ) : void

Sends the RST to the stream.

SendWindowUpdate ( Int64 windowAddition ) : void

Send the WindowUpdate frame to the stream.

UpdateWindowBalance ( Int64 deltaWindowSize ) : void

Updates the window balance.

Private Methods

Méthode Description
OnProtocolData ( object sender, System.ServiceModel.Http2Protocol.StreamEventArgs e ) : void

Event handler for protocol data.

OnSessionFrame ( object sender, ControlFrameEventArgs e ) : void

Event handler for Session frame.

OnStreamError ( object sender, System.ServiceModel.Http2Protocol.StreamErrorEventArgs e ) : void

Event handler for Stream error.

OpenClient ( ProtocolHeaders headers, bool isFin ) : void

Opens the stream.

OpenServer ( ProtocolHeaders headers, bool isFin ) : void

Method Details

Close() public méthode

Closes the stream.
public Close ( ) : void
Résultat void

Close() public méthode

Closes the stream with specified reason.
public Close ( StatusCode reason ) : void
reason StatusCode The reason.
Résultat void

Http2Stream() public méthode

Initializes a new instance of the Http2Stream class.
public Http2Stream ( int id, ProtocolSession session )
id int The stream id.
session ProtocolSession The stream session.

SendData() public méthode

Sends the data to the stream.
public SendData ( System.ServiceModel.Http2Protocol.ProtocolData data, bool isFin ) : void
data System.ServiceModel.Http2Protocol.ProtocolData The data.
isFin bool if set to true than this stream will be half-closed.
Résultat void

SendHeaders() public méthode

Sends the headers to the stream.
public SendHeaders ( ProtocolHeaders headers, bool isFin ) : void
headers ProtocolHeaders The headers.
isFin bool if set to true than this stream will be half-closed.
Résultat void

SendRST() public méthode

Sends the RST to the stream.
public SendRST ( StatusCode reason ) : void
reason StatusCode The reason.
Résultat void

SendWindowUpdate() public méthode

Send the WindowUpdate frame to the stream.
public SendWindowUpdate ( Int64 windowAddition ) : void
windowAddition Int64
Résultat void

UpdateWindowBalance() public méthode

Updates the window balance.
public UpdateWindowBalance ( Int64 deltaWindowSize ) : void
deltaWindowSize Int64 Size of the delta window.
Résultat void