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 };
608
var destinationInfo = new
HeaderStoreItemInfo
697
HeaderStoreItemInfo result = new
HeaderStoreItemInfo
();
754
var info = new
HeaderStoreItemInfo
() { RawValue = value };
1007
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))
346
if (entry.Value is not
HeaderStoreItemInfo
info)
382
HeaderStoreItemInfo
info = GetOrCreateHeaderInfo(descriptor);
398
HeaderStoreItemInfo
info = GetOrCreateHeaderInfo(descriptor);
426
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
504
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
575
if (entry.Value is
HeaderStoreItemInfo
info)
590
if (sourceValue is
HeaderStoreItemInfo
info)
604
private static
HeaderStoreItemInfo
CloneHeaderInfo(HeaderDescriptor descriptor,
HeaderStoreItemInfo
sourceInfo)
608
var
destinationInfo = new HeaderStoreItemInfo
643
private static void CloneAndAddValue(
HeaderStoreItemInfo
destinationInfo, object source)
680
private
HeaderStoreItemInfo
GetOrCreateHeaderInfo(HeaderDescriptor descriptor)
682
if (TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
692
private
HeaderStoreItemInfo
CreateAndAddHeaderToStore(HeaderDescriptor descriptor)
697
HeaderStoreItemInfo
result = new HeaderStoreItemInfo();
722
private bool TryGetAndParseHeaderInfo(HeaderDescriptor key, [NotNullWhen(true)] out
HeaderStoreItemInfo
? info)
729
info = value is
HeaderStoreItemInfo
hsi
742
/// Replaces <paramref name="storeValueRef"/> with a new <see cref="
HeaderStoreItemInfo
"/>,
743
/// or returns the existing <see cref="
HeaderStoreItemInfo
"/> if a different thread beat us to it.
750
private static
HeaderStoreItemInfo
ReplaceWithHeaderStoreItemInfo(ref object storeValueRef, object value)
754
var
info = new HeaderStoreItemInfo() { RawValue = value };
763
return (
HeaderStoreItemInfo
)previousValue;
766
private static void ParseRawHeaderValues(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info)
796
private static void ParseSingleRawHeaderValue(
HeaderStoreItemInfo
info, HeaderDescriptor descriptor, string rawValue)
826
HeaderStoreItemInfo
info;
845
private static bool TryParseAndAddRawHeaderValue(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info, string? value, bool addWhenInvalid)
931
private static void AddParsedValue(
HeaderStoreItemInfo
info, object value)
940
private static void AddInvalidValue(
HeaderStoreItemInfo
info, string value)
945
private static void AddRawValue(
HeaderStoreItemInfo
info, string value)
977
if (!TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
987
if (!TryGetAndParseHeaderInfo(descriptor, out
HeaderStoreItemInfo
? info))
997
private void PrepareHeaderInfoForAdd(HeaderDescriptor descriptor, out
HeaderStoreItemInfo
info, out bool addToStore)
1012
private static void ParseAndAddValue(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info, string? value)
1135
internal static string[] GetStoreValuesAsStringArray(HeaderDescriptor descriptor,
HeaderStoreItemInfo
info)
1144
HeaderStoreItemInfo
? info = sourceValues as
HeaderStoreItemInfo
;
1182
HeaderStoreItemInfo
? info = sourceValues as
HeaderStoreItemInfo
;
1215
private static int GetValueCount(
HeaderStoreItemInfo
info)