=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -6,6 +6,7 @@ namespace adas_core.module.Relays.Utils;
|
||||
/// <summary>
|
||||
/// Utility class for handling HTTP-related operations, such as adding basic authentication headers to HTTP requests.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=02c5c5e -->
|
||||
public static class HttpUtils
|
||||
{
|
||||
/// <summary>
|
||||
@@ -15,6 +16,7 @@ public static class HttpUtils
|
||||
/// <param name="password">The password for basic authentication.</param>
|
||||
/// <param name="headers">The HttpRequestHeaders to which the authentication will be added.</param>
|
||||
/// <returns>The HttpRequestHeaders with the added basic authentication.</returns>
|
||||
/// <!-- aidoc:v1 sig=adadc62 body=7d07c47 -->
|
||||
public static HttpRequestHeaders AddBasicAuth(string username, string password, HttpRequestHeaders headers)
|
||||
{
|
||||
var auth = Encoding.ASCII.GetBytes($"{username}:{password}");
|
||||
|
||||
Reference in New Issue
Block a user