28 references to Parser
System.Net.Http (28)
System\Net\Http\Headers\HeaderDescriptor.cs (2)
332public string Separator => Parser is { } parser ? parser.Separator : HttpHeaderParser.DefaultSeparator; 334public byte[] SeparatorBytes => Parser is { } parser ? parser.SeparatorBytes : HttpHeaderParser.DefaultSeparatorBytes;
System\Net\Http\Headers\HttpHeaders.cs (25)
81if (descriptor.Parser is null) 127if (descriptor.Parser is null) 292if (descriptor.Parser is null) 403if (entry.Key.Parser is null) 443Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 449Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 457Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 491Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 492Debug.Assert(descriptor.Parser.SupportsMultipleValues, 503IEqualityComparer? comparer = descriptor.Parser.Comparer; 586Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 587Debug.Assert(descriptor.Parser.SupportsMultipleValues, 599IEqualityComparer? comparer = descriptor.Parser.Comparer; 694if (descriptor.Parser == null) 879if (descriptor.Parser == null) 928Debug.Assert(descriptor.Parser != null); 934if (!info.CanAddParsedValue(descriptor.Parser)) 945if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 972if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1100Debug.Assert(descriptor.Parser != null); 1104if (!info.CanAddParsedValue(descriptor.Parser)) 1110object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1137parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1248ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1284ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)