C# Класс System.ServiceModel.Http2Protocol.Http2Stream

Http2 stream that runs inside Http2Protocol.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

Closes the stream.
public Close ( ) : void
Результат void

Close() публичный Метод

Closes the stream with specified reason.
public Close ( StatusCode reason ) : void
reason StatusCode The reason.
Результат void

Http2Stream() публичный Метод

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() публичный Метод

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.
Результат void

SendHeaders() публичный Метод

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.
Результат void

SendRST() публичный Метод

Sends the RST to the stream.
public SendRST ( StatusCode reason ) : void
reason StatusCode The reason.
Результат void

SendWindowUpdate() публичный Метод

Send the WindowUpdate frame to the stream.
public SendWindowUpdate ( Int64 windowAddition ) : void
windowAddition Int64
Результат void

UpdateWindowBalance() публичный Метод

Updates the window balance.
public UpdateWindowBalance ( Int64 deltaWindowSize ) : void
deltaWindowSize Int64 Size of the delta window.
Результат void