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)
381Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 387Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 395Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 429Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 430Debug.Assert(descriptor.Parser.SupportsMultipleValues, 441IEqualityComparer? comparer = descriptor.Parser.Comparer; 507Debug.Assert(descriptor.Parser != null, "Can't add parsed value if there is no parser available."); 508Debug.Assert(descriptor.Parser.SupportsMultipleValues, 520IEqualityComparer? comparer = descriptor.Parser.Comparer; 615if (descriptor.Parser == null) 800if (descriptor.Parser == null) 849Debug.Assert(descriptor.Parser != null); 855if (!info.CanAddParsedValue(descriptor.Parser)) 866if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out object? parsedValue)) 893if (descriptor.Parser.TryParseValue(value, info.ParsedAndInvalidValues, ref index, out parsedValue)) 1017if (descriptor.Parser == null) 1028if (!info.CanAddParsedValue(descriptor.Parser)) 1034object parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1061parsedValue = descriptor.Parser.ParseValue(value, info.ParsedAndInvalidValues, ref index); 1172ReadStoreValues<object?>(values, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex); 1208ReadStoreValues<object?>(values!, info.ParsedAndInvalidValues, descriptor.Parser, ref currentIndex);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
185if (_descriptor.Parser == GenericHeaderParser.TokenListParser)