1 write to Reason
Microsoft.AspNetCore.Server.Kestrel.Core (1)
BadHttpRequestException.cs (1)
23Reason = reason;
18 references to Reason
InMemory.FunctionalTests (1)
ChunkedRequestTests.cs (1)
901Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, badReqEx.Reason);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\Http1Connection.cs (2)
798switch (kestrelEx?.Reason) 844if (ex.Reason == RequestRejectionReason.UnrecognizedHTTPVersion)
Internal\Http2\Http2Connection.cs (1)
1643catch (BadHttpRequestException bre) when (bre.Reason == RequestRejectionReason.TooManyHeaders)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
HttpParserTests.cs (1)
593Assert.Equal(RequestRejectionReason.TlsOverHttpError, badHttpRequestException.Reason);
MessageBodyTests.cs (13)
781ex.Reason == RequestRejectionReason.RequestBodyTimeout); 1227Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex0.Reason); 1228Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex1.Reason); 1229Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex2.Reason); 1230Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex3.Reason); 1260Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex0.Reason); 1261Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex1.Reason); 1262Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex2.Reason); 1263Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex3.Reason); 1287Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex0.Reason); 1288Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex1.Reason); 1289Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex2.Reason); 1290Assert.Equal(RequestRejectionReason.UnexpectedEndOfRequestContent, ex3.Reason);