Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ParseRawHeaderValues()

bool System.Net.Http.Headers.HttpHeaders.ParseRawHeaderValues ( HeaderDescriptor descriptor,
HeaderStoreItemInfo info,
bool removeEmptyHeader )
inlineprivateinherited

Definition at line 618 of file HttpHeaders.cs.

619 {
620 if (info.RawValue != null)
621 {
622 if (!(info.RawValue is List<string> rawValues))
623 {
624 ParseSingleRawHeaderValue(descriptor, info);
625 }
626 else
627 {
629 }
630 info.RawValue = null;
631 if (info.InvalidValue == null && info.ParsedValue == null)
632 {
634 {
635 _headerStore.Remove(descriptor);
636 }
637 return false;
638 }
639 }
640 return true;
641 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static void ParseMultipleRawHeaderValues(HeaderDescriptor descriptor, HeaderStoreItemInfo info, List< string > rawValues)
Dictionary< HeaderDescriptor, object > _headerStore
static void ParseSingleRawHeaderValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info)

References System.Net.Http.Headers.HttpHeaders._headerStore, System.info, System.Net.Http.Headers.HttpHeaders.ParseMultipleRawHeaderValues(), System.Net.Http.Headers.HttpHeaders.ParseSingleRawHeaderValue(), and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().

Referenced by System.Net.Http.Headers.HttpHeaders.GetEnumeratorCore(), and System.Net.Http.Headers.HttpHeaders.TryGetAndParseHeaderInfo().