12 references to ErrorLength
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\Http1Connection.cs (3)
991parseResult.ErrorLength > 0 && 992parseResult.ErrorOffset + parseResult.ErrorLength <= buffer.Length) 994var errorSlice = buffer.Slice(parseResult.ErrorOffset, parseResult.ErrorLength);
Internal\Http\HttpParser.cs (3)
373if (_showErrorDetails && result.ErrorLength > 0 && result.ErrorOffset + result.ErrorLength <= buffer.Length) 375var errorSlice = buffer.Slice(result.ErrorOffset, result.ErrorLength);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
HttpParserTests.cs (6)
879Assert.Equal(8, result.ErrorLength); 882if (result.ErrorLength > 0 && result.ErrorOffset + result.ErrorLength <= buffer.Length) 885var endPosition = buffer.GetPosition(result.ErrorLength, startPosition); 941Assert.Equal(22, result.ErrorLength); // "InvalidHeaderNoColon\r\n" 944var errorSlice = buffer.Slice(result.ErrorOffset, result.ErrorLength);