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)
380Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 386Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 394Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 428Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 429Debug.Assert(descriptor.Parser.SupportsMultipleValues, 440IEqualityComparer? comparer = descriptor.Parser.Comparer; 506Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 507Debug.Assert(descriptor.Parser.SupportsMultipleValues, 519IEqualityComparer? comparer = descriptor.Parser.Comparer; 614if (descriptor.Parser == null) 799if (descriptor.Parser == null) 848Debug.Assert(descriptor.Parser != null); 854if (!info.CanAddParsedValue(descriptor.Parser)) 865if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 892if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1016if (descriptor.Parser == null) 1027if (!info.CanAddParsedValue(descriptor.Parser)) 1033object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1060parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1171ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1207ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)