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

◆ TryAddWithoutValidation() [1/4]

bool System.Net.Http.Headers.HttpHeaders.TryAddWithoutValidation ( HeaderDescriptor descriptor,
IEnumerable< string > values )
inlinepackageinherited

Definition at line 167 of file HttpHeaders.cs.

168 {
169 if (values == null)
170 {
171 throw new ArgumentNullException("values");
172 }
174 {
175 if (enumerator.MoveNext())
176 {
177 TryAddWithoutValidation(descriptor, enumerator.Current);
178 if (enumerator.MoveNext())
179 {
180 HeaderStoreItemInfo orCreateHeaderInfo = GetOrCreateHeaderInfo(descriptor, parseRawValues: false);
181 do
182 {
183 AddRawValue(orCreateHeaderInfo, enumerator.Current ?? string.Empty);
184 }
185 while (enumerator.MoveNext());
186 }
187 }
188 }
189 return true;
190 }
static void AddRawValue(HeaderStoreItemInfo info, string value)
HeaderStoreItemInfo GetOrCreateHeaderInfo(HeaderDescriptor descriptor, bool parseRawValues)
bool TryAddWithoutValidation(string name, string? value)

References System.Net.Http.Headers.HttpHeaders.AddRawValue(), System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.Net.Http.Headers.HttpHeaders.GetOrCreateHeaderInfo(), System.Net.Http.Headers.HttpHeaders.TryAddWithoutValidation(), and System.values.