28 references to Parser
System.Net.Http (28)
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 (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; 569Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 570Debug.Assert(descriptor.Parser.SupportsMultipleValues, 582IEqualityComparer? comparer = descriptor.Parser.Comparer; 677if (descriptor.Parser == null) 862if (descriptor.Parser == null) 911Debug.Assert(descriptor.Parser != null); 917if (!info.CanAddParsedValue(descriptor.Parser)) 928if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 955if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1083Debug.Assert(descriptor.Parser != null); 1087if (!info.CanAddParsedValue(descriptor.Parser)) 1093object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1120parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1231ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1267ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)