INNER CODE UNIT · Rust
h
nginx/nginx-gateway-fabric · internal/controller/nginx/modules/rust/ai-guardrails/src/lib.rs:90
let h = ngx::ffi::ngx_array_push(handlers) as *mut ngx_http_handler_pt;
if h.is_null() {
ngx_conf_log_error!(
NGX_LOG_ERR,
cf,
"guardrails: could not push access-phase handler"
);
return Status::NGX_ERROR.into();
}
*h = Some(guardrails_access_handler);
Status::NGX_OK.into()
}
}
}
unsafe impl HttpModuleLocationConf for Module {
type LocationConf = ModuleConfig;