module Netcgi_cgi:Classical CGI connector.
CGI scripts have poor performance as they are entirely re-run for
each request (so it is not possible to cache in the running program
database connections for example). Still they are suitable for
moderate frequented websites (especially because they run
everywhere) and for development.
val run :
?exn_handler:Netcgi.exn_handler -> (Netcgi.cgi -> unit) -> unit
f cgifor each cgi request. Contrarily to the other connectors, CGI execute the whole code (even the one outside
f) each time the script is accessed. Therefore, one cannot easily cache database connections,...
`Automaticfor all arguments.
Netcgi.exn_handler. Default: delegate all exceptions to the default handler.
val is_cgi :
unit -> bool
is_cgisays whether the script is run in a CGI environment. This allows for example to call the
Netcgi_testmodule if it is not.