FastGithub/FastGithub.ReverseProxy/RequestContext.cs
2021-07-20 09:42:38 +08:00

24 lines
553 B
C#

namespace FastGithub.ReverseProxy
{
/// <summary>
/// 表示请求上下文
/// </summary>
sealed class RequestContext
{
/// <summary>
/// 获取或设置是否为https请求
/// </summary>
public bool IsHttps { get; set; }
/// <summary>
/// 请求的主机
/// </summary>
public string? Host { get; set; }
/// <summary>
/// 获取或设置Sni值的表达式
/// </summary>
public TlsSniPattern TlsSniPattern { get; set; }
}
}