mod_http mutates core.moduleapi, which is a bit of a weird thing to do.
What if:
``` lua
module:provides("api", {
http_url = function (module, app_name, default_path)
return "http://example.net"
end;
});
```
- Cleaner unloading
- Conflict detection
- Per-host API extensions?
mod_http mutates core.moduleapi, which is a bit of a weird thing to do. What if: ``` lua module:provides("api", { http_url = function (module, app_name, default_path) return "http://example.net" end; }); ``` - Cleaner unloading - Conflict detection - Per-host API extensions?