src/Library/NetPro.Web.Api/Configuration/NetProOption.cs

(完整代码) 1KB

namespace NetPro.Web.Api
{
    /// <summary>
    /// Represents startup  configuration parameters
    /// </summary>
    public partial class NetProOption
    {
        /// <summary>
        ///请求头参数"Cache-Control" 
        /// </summary>
        public string StaticFilesCacheControl { get; set; } = "Cache-Control";

        /// <summary>
        /// http 返回内容是否压缩
        /// </summary>
        public bool UseResponseCompression { get; set; } = false;

        /// <summary>
        /// 应用程序名称
        /// </summary>
        public string ApplicationName { get; set; }

        /// <summary>
        /// api 执行超时警告时长(秒)
        /// </summary>
        public int RequestWarningThreshold { get; set; } = 5;

        /// <summary>
        /// 404页面地址
        /// </summary>
        public string PageNotFoundUrl { get; set; }
        /// <summary>
        /// 是否是调试模式,默认true
        /// </summary>
        public bool IsDebug { get; set; } = true;

        /// <summary>
        /// 全局路由前缀
        /// </summary>
        /// <remarks>例如:/api/admin/xxx/controller/action </remarks>
        public string RoutePrefix { get; set; }

    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。