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

19 lines
491 B
C#

using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace KestrelApp.Middleware.HttpProxy
{
/// <summary>
/// http代理身份认证处理者
/// </summary>
public interface IHttpProxyAuthenticationHandler
{
/// <summary>
/// 认证身份
/// </summary>
/// <param name="authentication"></param>
/// <returns></returns>
ValueTask<bool> AuthenticateAsync(AuthenticationHeaderValue? authentication);
}
}