FastGithub/FastGithub.Http/RequestContext.cs
2021-08-11 16:29:05 +08:00

26 lines
580 B
C#

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