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

◆ Parse()

void System.Net.Http.AuthenticationHelper.DigestResponse.Parse ( string challenge)
inlineprivate

Definition at line 162 of file AuthenticationHelper.cs.

163 {
164 int parsedIndex = 0;
165 while (parsedIndex < challenge.Length)
166 {
168 if (!string.IsNullOrEmpty(nextKey) && parsedIndex < challenge.Length)
169 {
171 if (nextValue != null && (!(nextValue == string.Empty) || nextKey.Equals("opaque", StringComparison.OrdinalIgnoreCase) || nextKey.Equals("domain", StringComparison.OrdinalIgnoreCase) || nextKey.Equals("realm", StringComparison.OrdinalIgnoreCase)))
172 {
174 continue;
175 }
176 break;
177 }
178 break;
179 }
180 }
void Add(TKey key, TValue value)
readonly Dictionary< string, string > Parameters
string GetNextKey(string data, int currentIndex, out int parsedIndex)
string GetNextValue(string data, int currentIndex, bool expectQuotes, out int parsedIndex)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Http.AuthenticationHelper.DigestResponse.GetNextKey(), System.Net.Http.AuthenticationHelper.DigestResponse.GetNextValue(), System.Net.Http.AuthenticationHelper.DigestResponse.MustValueBeQuoted(), and System.Net.Http.AuthenticationHelper.DigestResponse.Parameters.

Referenced by System.Net.Http.AuthenticationHelper.DigestResponse.DigestResponse().