XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESystem

【Rust】XFE系统,基于Rust和汇编

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFESystem.Documents;

/// <summary>The renderer must serve only bundled assets, disable host-object access, and handle navigation explicitly.</summary>
public sealed record PreviewDocument(string Html, bool RequiresJavaScript, string ContentSecurityPolicy);

/// <summary>Execution request for an actual isolated JS renderer; creating a plan does not execute JavaScript.</summary>
public sealed record JavaScriptPreviewPlan(
    string Html, TimeSpan Timeout, long MemoryLimitBytes,
    bool RequiresSeparateProcess = true, bool AllowNetwork = false, bool AllowHostObjects = false,
    string IframeSandbox = "allow-scripts");