System\Net\Http\SocketsHttpHandler\Http2Connection.cs (39)
205FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0);
221FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0);
484if (frameHeader.Type != FrameType.Settings || frameHeader.AckFlag)
486if (frameHeader.Type == FrameType.GoAway)
563case FrameType.Headers:
567case FrameType.Data:
571case FrameType.Settings:
575case FrameType.Priority:
579case FrameType.Ping:
583case FrameType.WindowUpdate:
587case FrameType.RstStream:
591case FrameType.GoAway:
595case FrameType.AltSvc:
599case FrameType.PushPromise: // Should not happen, since we disable this in our initial SETTINGS
600case FrameType.Continuation: // Should only be received while processing headers in ProcessHeadersFrame
644Debug.Assert(frameHeader.Type == FrameType.Headers);
675if (frameHeader.Type != FrameType.Continuation ||
747Debug.Assert(frameHeader.Type == FrameType.AltSvc);
776Debug.Assert(frameHeader.Type == FrameType.Data);
805Debug.Assert(frameHeader.Type == FrameType.Settings);
961Debug.Assert(frameHeader.Type == FrameType.Priority);
975Debug.Assert(frameHeader.Type == FrameType.Ping);
1009Debug.Assert(frameHeader.Type == FrameType.WindowUpdate);
1046Debug.Assert(frameHeader.Type == FrameType.RstStream);
1112Debug.Assert(frameHeader.Type == FrameType.GoAway);
1288FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Settings, FrameFlags.Ack, streamId: 0);
1303FrameHeader.WriteTo(span, FrameHeader.PingLength, FrameType.Ping, state.isAck ? FrameFlags.Ack : FrameFlags.None, streamId: 0);
1315FrameHeader.WriteTo(span, FrameHeader.RstStreamLength, FrameType.RstStream, FrameFlags.None, s.streamId);
1668FrameHeader.WriteTo(span, current.Length, FrameType.Headers, flags, s.http2Stream.StreamId);
1680FrameHeader.WriteTo(span, current.Length, FrameType.Continuation, flags, s.http2Stream.StreamId);
1739FrameHeader.WriteTo(writeBuffer.Span, s.current.Length, FrameType.Data, FrameFlags.None, s.streamId);
1759FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Data, FrameFlags.EndStream, s.streamId);
1773FrameHeader.WriteTo(span, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, s.streamId);
1895public readonly FrameType Type;
1909public FrameHeader(int payloadLength, FrameType type, FrameFlags flags, int streamId)
1931FrameType type = (FrameType)buffer[3];
1937public static void WriteTo(Span<byte> destination, int payloadLength, FrameType type, FrameFlags flags, int streamId)
1940Debug.Assert(type <= FrameType.Last);