25 references to GetAsciiString
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
803
_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).
GetAsciiString
()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value);
808
_headerHandler.DecodedHeaders[((Span<byte>)H3StaticTable.Get(index).Name).
GetAsciiString
()] = value.GetAsciiOrUTF8String();
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\Http1Connection.cs (6)
429
_methodText = startLine[..versionAndMethod.MethodEnd].
GetAsciiString
();
493
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
543
QueryString = _parsedQueryString = query.
GetAsciiString
();
589
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
649
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
679
QueryString = _parsedQueryString = query.
GetAsciiString
();
Internal\Http\PathDecoder.cs (1)
45
return path.Slice(0, pathLength).
GetAsciiString
();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (13)
AsciiDecoding.cs (5)
38
var s = asciiBytes.
GetAsciiString
();
64
Assert.Throws<InvalidOperationException>(() => new Span<byte>(byteRange).
GetAsciiString
());
76
var s = span.
GetAsciiString
();
98
var s = span.
GetAsciiString
();
135
var s = asciiBytes.
GetAsciiString
();
HttpParserTests.cs (8)
1047
Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.
GetAsciiString
();
1049
RawTarget = target.
GetAsciiString
();
1050
RawPath = path.
GetAsciiString
();
1051
Query = query.
GetAsciiString
();
1065
Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.
GetAsciiString
();
1067
RawTarget = target.
GetAsciiString
();
1068
RawPath = path.
GetAsciiString
();
1069
Query = query.
GetAsciiString
();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
BytesToStringBenchmark.cs (1)
68
HttpUtilities.
GetAsciiString
(_asciiBytes);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
803
_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).
GetAsciiString
()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value);
808
_headerHandler.DecodedHeaders[((Span<byte>)H3StaticTable.Get(index).Name).
GetAsciiString
()] = value.GetAsciiOrUTF8String();