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