module Handler: sig .. end
Registering Apache handlers.
type result =
| |
OK |
| |
DECLINED |
| |
DONE |
| |
HTTP of int |
type t = Netcgi_apache.Apache.Request.t -> result
The type of handler functions. The exception Exit is
considered as a normal way of terminating early. All other
exceptions are logged and result in an Internal_server_error
response by Apache.
val register : t -> string -> unit
Modules may call register fn name to register one or more
handler functions. The handler functions are then referred to
in the Netcgi*Handler configuration commands as
Module_name.name where Module_name is derived from the
filename (given to the NetcgiLoad directive) and name is the
string passed here.