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

◆ IsAuthenticationChallenge()

static bool System.Net.Http.AuthenticationHelper.IsAuthenticationChallenge ( HttpResponseMessage response,
bool isProxyAuth )
inlinestaticprivate

Definition at line 297 of file AuthenticationHelper.cs.

298 {
299 if (!isProxyAuth)
300 {
301 return response.StatusCode == HttpStatusCode.Unauthorized;
302 }
303 return response.StatusCode == HttpStatusCode.ProxyAuthenticationRequired;
304 }

Referenced by System.Net.Http.AuthenticationHelper.TryGetAuthenticationChallenge(), and System.Net.Http.AuthenticationHelper.TryGetRepeatedChallenge().