package cohttp_static_handler
Module Cohttp_static_handlerSource
directory_handler ?log ?directory () returns a handler that serves all files in directory.
A file at directory/path/to/file will be served at host:port/path/to/file.
Directory defaults to the current working directory if none is provided.
If there is a gzipped version of a requested file located at directory/path/to/file.gz, the gzipped file will be served in its place.
Requests are logged to log, which defaults to Log.Global.log.