mirror of
https://github.com/xljiulang/KestrelApp.git
synced 2026-10-22 15:16:22 +08:00
17 lines
429 B
C#
17 lines
429 B
C#
using System.Net.Http.Headers;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KestrelApp.Middleware.HttpProxy
|
|
{
|
|
/// <summary>
|
|
/// 代理身份认证
|
|
/// </summary>
|
|
sealed class HttpProxyAuthenticationHandler : IHttpProxyAuthenticationHandler
|
|
{
|
|
public ValueTask<bool> AuthenticateAsync(AuthenticationHeaderValue? authentication)
|
|
{
|
|
return ValueTask.FromResult(true);
|
|
}
|
|
}
|
|
}
|