Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch<B: ByteHandles>(
    operation: &str,
    input: &str,
    limits: &WebLimits,
    invocation: Option<Invocation<'_, B>>,
) -> Option<Result<Value, B::Error>>
Expand description

Run a Web API operation, or return None when operation is not one, so the embedder can route its own operations.

Stateless operations, such as URL parsing, also run without an invocation, for example while a module is evaluated.