Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
HttpRequestOptions.cs
Go to the documentation of this file.
4
5namespace System.Net.Http;
6
7public sealed class HttpRequestOptions : IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IEnumerable
8{
10
11
12 object? IDictionary<string, object>.this[string key]
13 {
14 get
15 {
16 return Options[key];
17 }
18 set
19 {
20 Options[key] = value;
21 }
22 }
23
25
27
29
31
33 {
35 }
36
41
46
51
56
61
66
71
73 {
74 return Options.Remove(key);
75 }
76
81
83 {
85 }
86
88 {
89 if (Options.TryGetValue(key.Key, out object value2) && value2 is TValue val)
90 {
91 value = val;
92 return true;
93 }
94 value = default(TValue);
95 return false;
96 }
97
99 {
100 Options[key.Key] = value;
101 }
102}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
void Add(TKey key, TValue value)
bool TryGetValue< TValue >(HttpRequestOptionsKey< TValue > key, [MaybeNullWhen(false)] out TValue value)
bool IDictionary< string, object >. Remove(string key)
bool ICollection< KeyValuePair< string, object > >. Contains(KeyValuePair< string, object > item)
void Set< TValue >(HttpRequestOptionsKey< TValue > key, TValue value)
Dictionary< string, object?> Options
IEnumerator< KeyValuePair< string, object > > IEnumerable< KeyValuePair< string, object > >. GetEnumerator()
new IEnumerator< T > GetEnumerator()