24 references to Parser
System.Net.Http (24)
System\Net\Http\Headers\HeaderDescriptor.cs (2)
281public string Separator => Parser is { } parser ? parser.Separator : HttpHeaderParser.DefaultSeparator; 283public byte[] SeparatorBytes => Parser is { } parser ? parser.SeparatorBytes : HttpHeaderParser.DefaultSeparatorBytes;
System\Net\Http\Headers\HttpHeaders.cs (21)
388Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 394Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 402Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 436Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 437Debug.Assert(descriptor.Parser.SupportsMultipleValues, 448IEqualityComparer? comparer = descriptor.Parser.Comparer; 514Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 515Debug.Assert(descriptor.Parser.SupportsMultipleValues, 527IEqualityComparer? comparer = descriptor.Parser.Comparer; 622if (descriptor.Parser == null) 807if (descriptor.Parser == null) 856Debug.Assert(descriptor.Parser != null); 862if (!info.CanAddParsedValue(descriptor.Parser)) 873if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 900if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1024if (descriptor.Parser == null) 1035if (!info.CanAddParsedValue(descriptor.Parser)) 1041object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1068parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1179ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1215ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)