12 writes to Type
InMemory.FunctionalTests (2)
Http2\Http2TestBase.cs (2)
860
frame.
Type
= Http2FrameType.PUSH_PROMISE;
1204
frame.
Type
= (Http2FrameType)frameType;
Microsoft.AspNetCore.Server.Kestrel.Core (10)
src\Shared\ServerInfrastructure\Http2\Http2Frame.Continuation.cs (1)
26
Type
= Http2FrameType.CONTINUATION;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
36
Type
= Http2FrameType.DATA;
src\Shared\ServerInfrastructure\Http2\Http2Frame.GoAway.cs (1)
24
Type
= Http2FrameType.GOAWAY;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
48
Type
= Http2FrameType.HEADERS;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Ping.cs (1)
26
Type
= Http2FrameType.PING;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Priority.cs (1)
24
Type
= Http2FrameType.PRIORITY;
src\Shared\ServerInfrastructure\Http2\Http2Frame.RstStream.cs (1)
18
Type
= Http2FrameType.RST_STREAM;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Settings.cs (1)
27
Type
= Http2FrameType.SETTINGS;
src\Shared\ServerInfrastructure\Http2\Http2Frame.WindowUpdate.cs (1)
18
Type
= Http2FrameType.WINDOW_UPDATE;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
65
frame.
Type
= (Http2FrameType)header[TypeOffset];
36 references to Type
InMemory.FunctionalTests (7)
Http2\Http2ConnectionTests.cs (1)
1309
Assert.Equal(Http2FrameType.DATA, frame.
Type
);
Http2\Http2TestBase.cs (4)
1270
Assert.Equal(type, frame.
Type
);
1292
Assert.Equal(Http2FrameType.GOAWAY, frame.
Type
);
1314
while (frame.
Type
!= Http2FrameType.GOAWAY)
1338
Assert.Equal(Http2FrameType.RST_STREAM, frame.
Type
);
Http2\TlsTests.cs (2)
89
while (frame.
Type
!= Http2FrameType.GOAWAY)
95
Assert.Equal(Http2FrameType.GOAWAY, frame.
Type
);
Microsoft.AspNetCore.Server.Kestrel.Core (25)
Internal\Http2\Http2Connection.cs (17)
685
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdEven(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
688
return _incomingFrame.
Type
switch
718
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorPaddingTooLong(_incomingFrame.
Type
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidDataPadding);
740
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamHalfClosedRemote(_incomingFrame.
Type
, stream.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.FrameAfterStreamClose);
757
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.UnknownStream);
762
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamAborted(_incomingFrame.
Type
, stream.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.FrameAfterStreamClose);
767
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdZero(_incomingFrame.
Type
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
772
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdNotZero(_incomingFrame.
Type
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
778
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorHeadersInterleaved(_incomingFrame.
Type
, _incomingFrame.StreamId, _currentHeadersStream.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.UnexpectedFrame);
783
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorUnexpectedFrameLength(_incomingFrame.
Type
, expectedLength), Http2ErrorCode.FRAME_SIZE_ERROR, ConnectionEndReason.InvalidFrameLength);
800
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorPaddingTooLong(_incomingFrame.
Type
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidDataPadding);
805
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.StreamSelfDependency);
825
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamHalfClosedRemote(_incomingFrame.
Type
, stream.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.FrameAfterStreamClose);
850
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.InvalidStreamId);
928
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.StreamSelfDependency);
1383
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdle(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
1439
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.
Type
, _incomingFrame.StreamId), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.FrameAfterStreamClose);
Internal\Http2\Http2FrameWriter.cs (1)
1036
buffer[0] = (byte)frame.
Type
;
Internal\Infrastructure\KestrelTrace.Http2.cs (2)
41
Http2Log.Http2FrameReceived(_http2Logger, connectionId, frame.
Type
, frame.StreamId, frame.PayloadLength, frame.ShowFlags());
64
Http2Log.Http2FrameSending(_http2Logger, connectionId, frame.
Type
, frame.StreamId, frame.PayloadLength, frame.ShowFlags());
src\Shared\ServerInfrastructure\Http2\Http2Frame.cs (2)
35
switch (
Type
)
63
return $"{
Type
} Stream: {StreamId} Length: {PayloadLength} Flags: {ShowFlags()}";
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (3)
86
SharedStrings.FormatHttp2ErrorUnexpectedFrameLength(frame.
Type
, expectedLength: extendedHeaderLength), Http2ErrorCode.FRAME_SIZE_ERROR, ConnectionEndReason.InvalidFrameLength);
92
switch (frame.
Type
)
202
switch (frame.
Type
)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Http2\Http2ConnectionBenchmarkBase.cs (4)
106
Debug.Assert(_receiveHttpFrame.
Type
== Http2FrameType.SETTINGS);
108
Debug.Assert(_receiveHttpFrame.
Type
== Http2FrameType.WINDOW_UPDATE);
110
Debug.Assert(_receiveHttpFrame.
Type
== Http2FrameType.SETTINGS);
130
if (_receiveHttpFrame.
Type
== Http2FrameType.DATA)