Files
KestrelApp/KestrelApp.Middleware/HttpProxy/HttpProxyAuthenticationHandler.cs
2022-12-07 21:12:31 +08:00

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);
}
}
}