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

◆ SetBasicAuthToken()

static void System.Net.Http.AuthenticationHelper.SetBasicAuthToken ( HttpRequestMessage request,
NetworkCredential credential,
bool isProxyAuth )
inlinestaticprivate

Definition at line 327 of file AuthenticationHelper.cs.

328 {
329 string s = ((!string.IsNullOrEmpty(credential.Domain)) ? (credential.Domain + "\\" + credential.UserName + ":" + credential.Password) : (credential.UserName + ":" + credential.Password));
330 string parameter = Convert.ToBase64String(Encoding.UTF8.GetBytes(s));
332 }
static void SetRequestAuthenticationHeaderValue(HttpRequestMessage request, AuthenticationHeaderValue headerValue, bool isProxyAuth)
static Encoding UTF8
Definition Encoding.cs:526

References System.s, System.Net.Http.AuthenticationHelper.SetRequestAuthenticationHeaderValue(), System.Convert.ToBase64String(), and System.Text.Encoding.UTF8.

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