Struct H2FrameReadResult
We choose not to use a common interface for Http/2 frames to avoid boxing/unboxing.
public readonly struct H2FrameReadResult
- Inherited Members
- Extension Methods
Constructors
H2FrameReadResult(H2Frame, ReadOnlyMemory<byte>)
public H2FrameReadResult(H2Frame header, ReadOnlyMemory<byte> bodyBytes)
Parameters
header
H2FramebodyBytes
ReadOnlyMemory<byte>
Properties
BodyLength
public int BodyLength { get; }
Property Value
BodyType
public H2FrameType BodyType { get; }
Property Value
Flags
public HeaderFlags Flags { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
StreamIdentifier
public int StreamIdentifier { get; }
Property Value
Methods
GetContinuationFrame()
public ContinuationFrame GetContinuationFrame()
Returns
GetDataFrame()
public DataFrame GetDataFrame()
Returns
GetGoAwayFrame()
public GoAwayFrame GetGoAwayFrame()
Returns
GetHeadersFrame()
public HeadersFrame GetHeadersFrame()
Returns
GetPingFrame()
public PingFrame GetPingFrame()
Returns
GetPriorityFrame()
public PriorityFrame GetPriorityFrame()
Returns
GetRstStreamFrame()
public RstStreamFrame GetRstStreamFrame()
Returns
GetWindowUpdateFrame()
public WindowUpdateFrame GetWindowUpdateFrame()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TryReadNextSetting(out SettingFrame, ref int)
public bool TryReadNextSetting(out SettingFrame settingFrame, ref int index)
Parameters
settingFrame
SettingFrameindex
int