namespace CoreAgent.Infrastructure.Options
{
public class RequestLoggingOptions
{
///
/// 是否记录请求体
///
public bool LogRequestBody { get; set; } = true;
///
/// 是否记录响应体
///
public bool LogResponseBody { get; set; } = true;
///
/// 最大请求体大小(字节)
///
public int MaxRequestBodySize { get; set; } = 1024 * 1024; // 1MB
///
/// 最大响应体大小(字节)
///
public int MaxResponseBodySize { get; set; } = 1024 * 1024; // 1MB
///
/// 要排除的路径列表
///
public string[] ExcludePaths { get; set; } = Array.Empty();
///
/// 要排除的HTTP方法列表
///
public string[] ExcludeMethods { get; set; } = Array.Empty();
}
}