• Matthew Holt's avatar
    httpserver: Added function to register directive at runtime (dev only) · 5a691fba
    Matthew Holt authored
    This function should not be used outside of development. It destroys the
    absolute ordering and guarantees of correctness. Multiple uses of it
    may work fine, but maybe not if they overlap, causing non-deterministic
    builds which is bad. However, this can be convenient when developing
    a plugin by calling it from an init() function, since you don't have
    to modify the Caddy source code just to try your plugin.
    5a691fba
plugin.go 13.8 KB