6 instantiations of HeaderStoreItemInfo
System.Net.Http (6)
System\Net\Http\Headers\HttpHeaders.cs (6)
155storeValueRef = info = new HeaderStoreItemInfo() { RawValue = currentValue }; 190storeValueRef = info = new HeaderStoreItemInfo { RawValue = storeValue }; 609var destinationInfo = new HeaderStoreItemInfo 698HeaderStoreItemInfo result = new HeaderStoreItemInfo(); 755var info = new HeaderStoreItemInfo() { RawValue = value }; 1008info = new HeaderStoreItemInfo();
45 references to HeaderStoreItemInfo
System.Net.Http (45)
System\Net\Http\Headers\HttpHeaders.cs (45)
16/// Key/value pairs of headers. The value is either a raw <see cref="string"/> or a <see cref="HttpHeaders.HeaderStoreItemInfo"/>. 84PrepareHeaderInfoForAdd(descriptor, out HeaderStoreItemInfo info, out bool addToStore); 103PrepareHeaderInfoForAdd(descriptor, out HeaderStoreItemInfo info, out bool addToStore); 150if (currentValue is not HeaderStoreItemInfo info) 188if (storeValue is not HeaderStoreItemInfo info) 255if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 344if (entry.Value is not HeaderStoreItemInfo info) 383HeaderStoreItemInfo info = GetOrCreateHeaderInfo(descriptor); 399HeaderStoreItemInfo info = GetOrCreateHeaderInfo(descriptor); 427if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 505if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 576if (entry.Value is HeaderStoreItemInfo info) 591if (sourceValue is HeaderStoreItemInfo info) 605private static HeaderStoreItemInfo CloneHeaderInfo(HeaderDescriptor descriptor, HeaderStoreItemInfo sourceInfo) 609var destinationInfo = new HeaderStoreItemInfo 644private static void CloneAndAddValue(HeaderStoreItemInfo destinationInfo, object source) 681private HeaderStoreItemInfo GetOrCreateHeaderInfo(HeaderDescriptor descriptor) 683if (TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 693private HeaderStoreItemInfo CreateAndAddHeaderToStore(HeaderDescriptor descriptor) 698HeaderStoreItemInfo result = new HeaderStoreItemInfo(); 723private bool TryGetAndParseHeaderInfo(HeaderDescriptor key, [NotNullWhen(true)] out HeaderStoreItemInfo? info) 730info = value is HeaderStoreItemInfo hsi 743/// Replaces <paramref name="storeValueRef"/> with a new <see cref="HeaderStoreItemInfo"/>, 744/// or returns the existing <see cref="HeaderStoreItemInfo"/> if a different thread beat us to it. 751private static HeaderStoreItemInfo ReplaceWithHeaderStoreItemInfo(ref object storeValueRef, object value) 755var info = new HeaderStoreItemInfo() { RawValue = value }; 764return (HeaderStoreItemInfo)previousValue; 767private static void ParseRawHeaderValues(HeaderDescriptor descriptor, HeaderStoreItemInfo info) 797private static void ParseSingleRawHeaderValue(HeaderStoreItemInfo info, HeaderDescriptor descriptor, string rawValue) 827HeaderStoreItemInfo info; 846private static bool TryParseAndAddRawHeaderValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, string? value, bool addWhenInvalid) 932private static void AddParsedValue(HeaderStoreItemInfo info, object value) 941private static void AddInvalidValue(HeaderStoreItemInfo info, string value) 946private static void AddRawValue(HeaderStoreItemInfo info, string value) 978if (!TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 988if (!TryGetAndParseHeaderInfo(descriptor, out HeaderStoreItemInfo? info)) 998private void PrepareHeaderInfoForAdd(HeaderDescriptor descriptor, out HeaderStoreItemInfo info, out bool addToStore) 1013private static void ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, string? value) 1136internal static string[] GetStoreValuesAsStringArray(HeaderDescriptor descriptor, HeaderStoreItemInfo info) 1145HeaderStoreItemInfo? info = sourceValues as HeaderStoreItemInfo; 1183HeaderStoreItemInfo? info = sourceValues as HeaderStoreItemInfo; 1216private static int GetValueCount(HeaderStoreItemInfo info)