pub struct HttpHeaderPayloadBinding { /* private fields */ }Expand description
Binds a header-valued payload strategy to the HTTP evidence executor.
When a decision case selects this binding’s strategy reference, the executor
derives exactly one artifact per turn from the registry and applies it as the
value of header before dispatch. Passive turns derive the Control
artifact; explicit active verification turns derive the Candidate artifact,
aligning differential work with the existing evidence transaction boundary.
The derived bytes never bypass HttpProbe header validation, so the same
forbidden-header and value rules that guard hand-built probes also guard
strategy-materialized ones.
Implementations§
Source§impl HttpHeaderPayloadBinding
impl HttpHeaderPayloadBinding
Sourcepub fn new(
registry: PayloadStrategyRegistry,
reference: PayloadStrategyRef,
seed: PayloadSeed,
limits: PayloadStrategyLimits,
header: impl Into<String>,
) -> Result<Self, HttpEvidenceError>
pub fn new( registry: PayloadStrategyRegistry, reference: PayloadStrategyRef, seed: PayloadSeed, limits: PayloadStrategyLimits, header: impl Into<String>, ) -> Result<Self, HttpEvidenceError>
Binds reference to a request header, validating both up front.
Fails when the header name is empty, malformed, or forbidden by evidence
policy, or when reference is not registered in registry. Binding the
registry at construction keeps derivation a pure, in-process step.
Sourcepub fn reference(&self) -> &PayloadStrategyRef
pub fn reference(&self) -> &PayloadStrategyRef
Returns the strategy reference this binding materializes.
Trait Implementations§
Source§impl Clone for HttpHeaderPayloadBinding
impl Clone for HttpHeaderPayloadBinding
Source§fn clone(&self) -> HttpHeaderPayloadBinding
fn clone(&self) -> HttpHeaderPayloadBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more