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

◆ AddHeaders()

virtual void System.Net.Http.Headers.HttpHeaders.AddHeaders ( HttpHeaders sourceHeaders)
inlinepackagevirtualinherited

Reimplemented in System.Net.Http.Headers.HttpRequestHeaders, and System.Net.Http.Headers.HttpResponseHeaders.

Definition at line 456 of file HttpHeaders.cs.

457 {
459 if (headerStore == null || headerStore.Count == 0)
460 {
461 return;
462 }
463 if (_headerStore == null)
464 {
466 }
468 {
469 if (!_headerStore.ContainsKey(item.Key))
470 {
471 object value = item.Value;
472 if (value is HeaderStoreItemInfo sourceInfo)
473 {
475 }
476 else
477 {
479 }
480 }
481 }
482 }
void Add(TKey key, TValue value)
Dictionary< HeaderDescriptor, object > _headerStore
void AddHeaderInfo(HeaderDescriptor descriptor, HeaderStoreItemInfo sourceInfo)

References System.Net.Http.Headers.HttpHeaders._headerStore, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Http.Headers.HttpHeaders.AddHeaderInfo(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.item, and System.value.