mirror of
https://github.com/xljiulang/KestrelApp.git
synced 2026-10-22 07:06:31 +08:00
19 lines
491 B
C#
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);
|
|
}
|
|
}
|