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

◆ IsSessionAuthenticationChallenge()

static bool System.Net.Http.AuthenticationHelper.IsSessionAuthenticationChallenge ( HttpResponseMessage response)
inlinestaticpackage

Definition at line 223 of file AuthenticationHelper.cs.

224 {
225 if (response.StatusCode != HttpStatusCode.Unauthorized)
226 {
227 return false;
228 }
231 {
232 if (StringComparer.OrdinalIgnoreCase.Equals("Negotiate", item.Scheme) || StringComparer.OrdinalIgnoreCase.Equals("NTLM", item.Scheme))
233 {
234 return true;
235 }
236 }
237 return false;
238 }
static HttpHeaderValueCollection< AuthenticationHeaderValue > GetResponseAuthenticationHeaderValues(HttpResponseMessage response, bool isProxyAuth)

References System.Net.Http.AuthenticationHelper.GetResponseAuthenticationHeaderValues(), System.item, and System.StringComparer.OrdinalIgnoreCase.

Referenced by System.Net.Http.HttpConnection.SendAsyncCore().