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) 405if (entry.Key.Parser is null) 445Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 451Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 459Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 495Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 496Debug.Assert(descriptor.Parser.SupportsMultipleValues, 507IEqualityComparer? comparer = descriptor.Parser.Comparer; 590Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 591Debug.Assert(descriptor.Parser.SupportsMultipleValues, 603IEqualityComparer? comparer = descriptor.Parser.Comparer; 698if (descriptor.Parser == null) 883if (descriptor.Parser == null) 932Debug.Assert(descriptor.Parser != null); 938if (!info.CanAddParsedValue(descriptor.Parser)) 949if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 976if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1104Debug.Assert(descriptor.Parser != null); 1108if (!info.CanAddParsedValue(descriptor.Parser)) 1114object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1141parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1252ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1288ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)