pub struct StandardWebDiscoveryExecutorProfile { /* private fields */ }Expand description
Built-in low-risk executor bindings for route, component, and auth discovery.
Every executor inherits the supplied HttpEvidencePolicy. The policy is
therefore the single authority for allowed origins, timeout, body limits,
captured headers, and optional text samples. Existing executor identities
are treated as explicit host overrides and are never replaced.
PHP input discovery may derive form-control names from an authorized HTML sample. That optional derivation has its own fixed 64-KiB parser ceiling: larger body samples remain ordinary evidence, but produce no partial form-control observation. Missing derived evidence is never a negative fact.
§Examples
use url::Url;
use termivar_scanner::{
DecisionExecutorRegistry, HttpEvidencePolicy, StandardWebDiscoveryExecutorProfile,
STANDARD_WEB_DISCOVERY_EXECUTOR_COUNT,
};
let target = Url::parse("https://example.test/")?;
let profile = StandardWebDiscoveryExecutorProfile::new(
HttpEvidencePolicy::for_origin(target)?,
)?;
let mut registry = DecisionExecutorRegistry::new();
let report = profile.install(&mut registry)?;
assert_eq!(report.executors_inserted(), STANDARD_WEB_DISCOVERY_EXECUTOR_COUNT);Implementations§
Source§impl StandardWebDiscoveryExecutorProfile
impl StandardWebDiscoveryExecutorProfile
Sourcepub fn new(
policy: HttpEvidencePolicy,
) -> Result<Self, StandardWebExecutionError>
pub fn new( policy: HttpEvidencePolicy, ) -> Result<Self, StandardWebExecutionError>
Constructs all discovery executors under one immutable HTTP policy.
Sourcepub fn install(
&self,
registry: &mut DecisionExecutorRegistry,
) -> Result<StandardWebDiscoveryInstallReport, StandardWebExecutionError>
pub fn install( &self, registry: &mut DecisionExecutorRegistry, ) -> Result<StandardWebDiscoveryInstallReport, StandardWebExecutionError>
Installs executors and passive/active routes as one atomic registry update.
Reinstalling the same profile is idempotent. A host-provided executor
with a standard ID remains authoritative; conflicting action routes
reject the complete installation without partially changing registry.
Sourcepub const fn actions(&self) -> &'static [StandardWebActionKind]
pub const fn actions(&self) -> &'static [StandardWebActionKind]
Returns the semantic actions supplied by this profile.
Sourcepub fn executor_ids(&self) -> BTreeSet<&str>
pub fn executor_ids(&self) -> BTreeSet<&str>
Returns the distinct executor identities supplied by this profile.