using System;
using System.Collections.Generic;
namespace FastGithub.Scanner.ScanMiddlewares
{
    /// 
    /// https扫描选项
    /// 
    [Options("Github:Scan:HttpsScan")]
    sealed class HttpsScanOptions
    {
        /// 
        /// 扫描超时时长
        /// 
        public TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds(5d);
        /// 
        /// 是否使用短连接
        /// 
        public bool ConnectionClose { get; set; } = false;
        /// 
        /// 各域名扫描规则
        /// 
        public Dictionary Rules { get; set; } = new Dictionary();
        /// 
        /// 扫描规则
        /// 
        public class ScanRule
        {
            /// 
            /// 请求方式
            /// 
            public string Method { get; set; } = "HEAD";
            /// 
            /// 请求路径
            /// 
            public string Path { get; set; } = "/";
        }
    }
}