Template if.

// SPDX-FileCopyrightText: Gergely Nagy // SPDX-FileContributor: Gergely Nagy // // SPDX-License-Identifier: MIT use roto::{Registerable, Val, library}; use std::sync::Arc; #[derive(Debug, Clone)] pub struct IocaineContext { fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M) { methods.add_method_mut("set_header", |_, this, ()| { let decision = request:header(trusted_decision_header) if decision .