Skip to main content

forward

Function forward 

Source
async fn forward(
    dir: &Path,
    channel: &str,
    path: &str,
    query: &str,
    live: impl FnOnce(&Path) -> Vec<InstanceRecord> + Send + 'static,
) -> Response
Expand description

Send GET <path>?<query> to the live instance on channel. live lists the live instances of dir (the real process table in production; a test passes its own).