5 writes to Name
CodeGenerator (5)
src\Servers\Kestrel\shared\KnownHeaders.cs (5)
182Name = header, 191Name = HeaderNames.ContentLength, 253Name = header, 262Name = HeaderNames.ContentLength, 280Name = header,
73 references to Name
CodeGenerator (73)
src\Servers\Kestrel\shared\KnownHeaders.cs (73)
298.Where(header => invalidH2H3ResponseHeaders.Contains(header.Name)) 378if (header.Name == HeaderNames.ContentLength) 420if (header.Name == HeaderNames.ContentLength) 468public string Identifier => ResolveIdentifier(Name); 470public string StaticIdentifier => ResolveIdentifier(Name, ClassName); 472public byte[] Bytes => Encoding.ASCII.GetBytes($"\r\n{Name}: "); 572if (Name.Length >= 8) 574result = NameTerm(Name, 0, 8, "ulong", "uL"); 576else if (Name.Length >= 4) 578result = NameTerm(Name, 0, 4, "uint", "u"); 580else if (Name.Length >= 2) 582result = NameTerm(Name, 0, 2, "ushort", "u"); 586result = NameTerm(Name, 0, 1, "byte", "u"); 602while (index != Name.Length) 604if (Name.Length - index >= 8) 606result += delim + Term(Name, index, 8, "ulong", "uL"); 609else if (Name.Length - index >= 4) 611result += delim + Term(Name, index, 4, "uint", "u"); 614else if (Name.Length - index >= 2) 616result += delim + Term(Name, index, 2, "ushort", "u"); 621result += delim + Term(Name, index, 1, "byte", "u"); 634while (index != Name.Length) 636if (Name.Length - index >= 8) 640result = $"({firstTermVar} == {EqualityTerm(Name, index, 8, "uL")})"; 644result += delim + Term(Name, index, 8, "ulong", "uL"); 649else if (Name.Length - index >= 4) 653result = $"({firstTermVar} == {EqualityTerm(Name, index, 4, "u")})"; 657result += delim + Term(Name, index, 4, "uint", "u"); 661else if (Name.Length - index >= 2) 665result = $"({firstTermVar} == {EqualityTerm(Name, index, 2, "u")})"; 669result += delim + Term(Name, index, 2, "ushort", "u"); 677result = $"({firstTermVar} == {EqualityTerm(Name, index, 1, "u")})"; 681result += delim + Term(Name, index, 1, "byte", "u"); 695if (Name.Length >= 8) 697result = Term(Name, 0, 8, "ulong", "uL"); 699else if (Name.Length >= 4) 701result = Term(Name, 0, 4, "uint", "u"); 703else if (Name.Length >= 2) 705result = Term(Name, 0, 2, "ushort", "u"); 709result = Term(Name, 0, 1, "byte", "u"); 721while (index != Name.Length) 723if (Name.Length - index >= 8) 727result += delim + Term(Name, index, 8, "ulong", "uL"); 732else if (Name.Length - index >= 4) 736result += delim + Term(Name, index, 4, "uint", "u"); 740else if (Name.Length - index >= 2) 744result += delim + Term(Name, index, 2, "ushort", "u"); 752result += delim + Term(Name, index, 1, "byte", "u"); 791HeadersByLength = requestHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length), 798HeadersByLength = responseHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length), 805HeadersByLength = responseTrailers.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length), 868{Each(loop.Headers.Where(header => Array.IndexOf(InternalHeaderAccessors, header.Name) >= 0), header => $@" 869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier} 870{{{(header.Name == HeaderNames.ContentLength ? $@" 906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@" 976{{{(header.Name == HeaderNames.ContentLength ? @" 992{{{(header.Name == HeaderNames.ContentLength ? @" 1021{{{(header.Name == HeaderNames.ContentLength ? $@" 1030{{{(header.Name == HeaderNames.ContentLength ? $@" 1052{{{(header.Name == HeaderNames.ContentLength ? $@" 1070{{{(header.Name == HeaderNames.ContentLength ? $@" 1100{{{(header.Name == HeaderNames.ContentLength ? @" 1118{{{(header.Name == HeaderNames.ContentLength ? @" 1241case {header.Index}: // Header: ""{header.Name}"" 1324{AppendSwitch(loop.Headers.GroupBy(x => x.Name.Length).OrderBy(x => x.Key))} 1397case {header.Index}: // Header: ""{header.Name}"" 1508Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)), 1529Header = headers.SingleOrDefault(knownHeader => string.Equals(knownHeader.Name, g.Key, StringComparison.OrdinalIgnoreCase)), 1568return StringComparer.InvariantCulture.Compare(x.Name, y.Name);