6 instantiations of HeaderStoreItemInfo
System.Net.Http (6)
System\Net\Http\Headers\HttpHeaders.cs (6)
155
storeValueRef = info = new
HeaderStoreItemInfo
() { RawValue = currentValue };
190
storeValueRef = info = new
HeaderStoreItemInfo
{ RawValue = storeValue };
609
var destinationInfo = new
HeaderStoreItemInfo
698
HeaderStoreItemInfo result = new
HeaderStoreItemInfo
();
755
var info = new
HeaderStoreItemInfo
() { RawValue = value };
1008
info = 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
"/>.
84
PrepareHeaderInfoForAdd(descriptor, out
HeaderStoreItemInfo
info, out bool addToStore);
103
PrepareHeaderInfoForAdd(descriptor, out
HeaderStoreItemInfo
info, out bool addToStore);
150
if (currentValue is not
HeaderStoreItemInfo
info)
188
if (storeValue is not
HeaderStoreItemInfo
info)
255
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
344
if (entry.Value is not
HeaderStoreItemInfo
info)
383
HeaderStoreItemInfo
info = GetOrCreateHeaderInfo(descriptor);
399
HeaderStoreItemInfo
info = GetOrCreateHeaderInfo(descriptor);
427
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
505
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
576
if (entry.Value is
HeaderStoreItemInfo
info)
591
if (sourceValue is
HeaderStoreItemInfo
info)
605
private static
HeaderStoreItemInfo
CloneHeaderInfo(HeaderDescriptor descriptor,
HeaderStoreItemInfo
sourceInfo)
609
var
destinationInfo = new HeaderStoreItemInfo
644
private static void CloneAndAddValue(
HeaderStoreItemInfo
destinationInfo, object source)
681
private
HeaderStoreItemInfo
GetOrCreateHeaderInfo(HeaderDescriptor descriptor)
683
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
693
private
HeaderStoreItemInfo
CreateAndAddHeaderToStore(HeaderDescriptor descriptor)
698
HeaderStoreItemInfo
result = new HeaderStoreItemInfo();
723
private bool TryGetAndParseHeaderInfo(HeaderDescriptor key, [NotNullWhen(true)] out
HeaderStoreItemInfo
? info)
730
info = 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.
751
private static
HeaderStoreItemInfo
ReplaceWithHeaderStoreItemInfo(ref object storeValueRef, object value)
755
var
info = new HeaderStoreItemInfo() { RawValue = value };
764
return (
HeaderStoreItemInfo
)previousValue;
767
private static void ParseRawHeaderValues(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info)
797
private static void ParseSingleRawHeaderValue(
HeaderStoreItemInfo
info, HeaderDescriptor descriptor, string rawValue)
827
HeaderStoreItemInfo
info;
846
private static bool TryParseAndAddRawHeaderValue(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info, string? value, bool addWhenInvalid)
932
private static void AddParsedValue(
HeaderStoreItemInfo
info, object value)
941
private static void AddInvalidValue(
HeaderStoreItemInfo
info, string value)
946
private static void AddRawValue(
HeaderStoreItemInfo
info, string value)
978
if (!TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
988
if (!TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
998
private void PrepareHeaderInfoForAdd(HeaderDescriptor descriptor, out
HeaderStoreItemInfo
info, out bool addToStore)
1013
private static void ParseAndAddValue(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info, string? value)
1136
internal static string[] GetStoreValuesAsStringArray(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info)
1145
HeaderStoreItemInfo
? info = sourceValues as
HeaderStoreItemInfo
;
1183
HeaderStoreItemInfo
? info = sourceValues as
HeaderStoreItemInfo
;
1216
private static int GetValueCount(
HeaderStoreItemInfo
info)