25 references to GetAsciiString
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
785
_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).
GetAsciiString
()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value);
790
_headerHandler.DecodedHeaders[((Span<byte>)H3StaticTable.Get(index).Name).
GetAsciiString
()] = value.GetAsciiOrUTF8String();
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\Http1Connection.cs (6)
327
_methodText = startLine[..versionAndMethod.MethodEnd].
GetAsciiString
();
391
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
441
QueryString = _parsedQueryString = query.
GetAsciiString
();
487
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
547
RawTarget = _parsedRawTarget = target.
GetAsciiString
();
577
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)
917
Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.
GetAsciiString
();
919
RawTarget = target.
GetAsciiString
();
920
RawPath = path.
GetAsciiString
();
921
Query = query.
GetAsciiString
();
935
Method = method != HttpMethod.Custom ? HttpUtilities.MethodToString(method) : customMethod.
GetAsciiString
();
937
RawTarget = target.
GetAsciiString
();
938
RawPath = path.
GetAsciiString
();
939
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)
785
_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).
GetAsciiString
()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value);
790
_headerHandler.DecodedHeaders[((Span<byte>)H3StaticTable.Get(index).Name).
GetAsciiString
()] = value.GetAsciiOrUTF8String();