54 references to Identifier
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (54)
src\Servers\Kestrel\shared\KnownHeaders.cs (54)
303.Where(header => FormattedInternalHeaderNames.Where(x => x.IsPseudoHeader).Select(x => x.Identifier).Contains(header.Identifier))
395values = ref _headers._{header.Identifier};
439{extraIndent}values = ref _headers._{header.Identifier};
784.Select(h => h.Identifier).Distinct().OrderBy(n => n, StringComparer.InvariantCulture).ToArray();
865public bool Has{header.Identifier} => {header.TestBit()};")}
867public int {header.Identifier}Count => _headers._{header.Identifier}.Count;")}
869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier}
887return _headers._{header.Identifier};
896_headers._{header.Identifier} = value;
901_headers._{header.Identifier} = default;
903_headers._raw{header.Identifier} = null;")}
906{Each(loop.Headers.Where(header => header.Name != HeaderNames.ContentLength && !NonApiHeaders.Contains(header.Identifier)), header => $@"
907StringValues IHeaderDictionary.{header.Identifier}
911var value = _headers._{header.Identifier};
927_headers._{header.Identifier} = value;
932_headers._{header.Identifier} = default;
934_headers._raw{header.Identifier} = null;")}
937{Each(ApiHeaderNames.Where(header => header != "ContentLength" && !loop.Headers.Select(kh => kh.Identifier).Contains(header)), header => $@"
957public void SetRaw{header.Identifier}(StringValues value, byte[] raw)
960_headers._{header.Identifier} = value;
961_headers._raw{header.Identifier} = raw;
985value = _headers._{header.Identifier};
1001value = _headers._{header.Identifier};
1024_headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@"
1025_headers._raw{header.Identifier} = null;")}")}
1033_headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@"
1034_headers._raw{header.Identifier} = null;")}")}
1062_headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@"
1063_headers._raw{header.Identifier} = null;")}
1080_headers._{header.Identifier} = value;{(header.EnhancedSetter == false ? "" : $@"
1081_headers._raw{header.Identifier} = null;")}
1110_headers._{header.Identifier} = default(StringValues);{(header.EnhancedSetter == false ? "" : $@"
1111_headers._raw{header.Identifier} = null;")}
1128_headers._{header.Identifier} = default(StringValues);{(header.EnhancedSetter == false ? "" : $@"
1129_headers._raw{header.Identifier} = null;")}
1152{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1155_headers._{header.Identifier} = default;
1168{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1171_headers._{header.Identifier} = default;
1187{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
1194array[arrayIndex] = new KeyValuePair<string, StringValues>({header.StaticIdentifier}, _headers._{header.Identifier});
1240{{{Each(loop.Headers.OrderBy(h => h.Index).Where(h => h.Identifier != "ContentLength"), header => $@"
1243values = ref _headers._{header.Identifier};
1246if (_headers._raw{header.Identifier} != null)
1251output.Write(_headers._raw{header.Identifier});
1256values = ref _headers._{header.Identifier};
1384{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => @"
1385public StringValues _" + header.Identifier + ";")}
1387public byte[]? _raw" + header.Identifier + ";")}
1396{{{Each(loop.Headers.Where(header => header.Identifier != "ContentLength"), header => $@"
1399_current = new KeyValuePair<string, StringValues>({header.StaticIdentifier}, _collection._headers._{header.Identifier});
1400{(loop.ClassName.Contains("Request") ? "" : @$"_currentKnownType = KnownHeaderType.{header.Identifier};
1465{Each(group, (h) => @$"case KnownHeaderType.{h.Header.Identifier}: