Skip to main content

decide

Function decide 

Source
pub fn decide(
    pipeline: &Pipeline<str, String>,
    body: &[u8],
    ctx: &Context,
) -> Result<BodyDecision, BodyError>
Expand description

Runs pipeline against a UTF-8 request body, synchronously.

This is the whole guard evaluation. The Layer only buffers bytes and calls this; it does not make policy decisions of its own.