HtmlToPdf/mvp/HtmlToPdfService.Core/Options/CallbackOptions.cs
2025-12-11 23:35:52 +08:00

34 lines
755 B
C#

namespace HtmlToPdfService.Core.Options;
/// <summary>
/// 回调配置选项
/// </summary>
public class CallbackOptions
{
/// <summary>
/// 是否启用回调
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// 默认回调 URL
/// </summary>
public string? DefaultUrl { get; set; }
/// <summary>
/// 回调超时时间(毫秒)
/// </summary>
public int Timeout { get; set; } = 30000;
/// <summary>
/// 是否在回调中包含 PDF Base64 数据
/// </summary>
public bool IncludePdfData { get; set; } = false;
/// <summary>
/// 自定义 HTTP Headers
/// </summary>
public Dictionary<string, string> CustomHeaders { get; set; } = new();
}