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);
475if (frameHeader.Type != FrameType.Settings || frameHeader.AckFlag)
477if (frameHeader.Type == FrameType.GoAway)
554case FrameType.Headers:
558case FrameType.Data:
562case FrameType.Settings:
566case FrameType.Priority:
570case FrameType.Ping:
574case FrameType.WindowUpdate:
578case FrameType.RstStream:
582case FrameType.GoAway:
586case FrameType.AltSvc:
590case FrameType.PushPromise: // Should not happen, since we disable this in our initial SETTINGS
591case FrameType.Continuation: // Should only be received while processing headers in ProcessHeadersFrame
635Debug.Assert(frameHeader.Type == FrameType.Headers);
666if (frameHeader.Type != FrameType.Continuation ||
738Debug.Assert(frameHeader.Type == FrameType.AltSvc);
767Debug.Assert(frameHeader.Type == FrameType.Data);
796Debug.Assert(frameHeader.Type == FrameType.Settings);
952Debug.Assert(frameHeader.Type == FrameType.Priority);
966Debug.Assert(frameHeader.Type == FrameType.Ping);
1000Debug.Assert(frameHeader.Type == FrameType.WindowUpdate);
1037Debug.Assert(frameHeader.Type == FrameType.RstStream);
1103Debug.Assert(frameHeader.Type == FrameType.GoAway);
1279FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Settings, FrameFlags.Ack, streamId: 0);
1294FrameHeader.WriteTo(span, FrameHeader.PingLength, FrameType.Ping, state.isAck ? FrameFlags.Ack : FrameFlags.None, streamId: 0);
1306FrameHeader.WriteTo(span, FrameHeader.RstStreamLength, FrameType.RstStream, FrameFlags.None, s.streamId);
1659FrameHeader.WriteTo(span, current.Length, FrameType.Headers, flags, s.http2Stream.StreamId);
1671FrameHeader.WriteTo(span, current.Length, FrameType.Continuation, flags, s.http2Stream.StreamId);
1730FrameHeader.WriteTo(writeBuffer.Span, s.current.Length, FrameType.Data, FrameFlags.None, s.streamId);
1750FrameHeader.WriteTo(writeBuffer.Span, 0, FrameType.Data, FrameFlags.EndStream, s.streamId);
1764FrameHeader.WriteTo(span, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, s.streamId);
1886public readonly FrameType Type;
1900public FrameHeader(int payloadLength, FrameType type, FrameFlags flags, int streamId)
1922FrameType type = (FrameType)buffer[3];
1928public static void WriteTo(Span<byte> destination, int payloadLength, FrameType type, FrameFlags flags, int streamId)
1931Debug.Assert(type <= FrameType.Last);