Module openflax.handler.ls

Simple directory listing handler for OpenFlax.

Behaviour: openflax.handler.

Description

Simple directory listing handler for OpenFlax.

This handler implements the displaying of simple directory listings in a web page.

This handler requires openflax.handler.file and openflax.handler.template.

This handler supports the following configuration options in the conf() passed to it:

Function Index

serve/1Serves a simple listing of a world-readable, world-executable directory to the connected user agent.
start/1Initializes the directory server.
stop/1Shuts down the directory server.

Function Details

serve/1

serve(Conf::conf()) -> {response(), conf()}

Serves a simple listing of a world-readable, world-executable directory to the connected user agent.

start/1

start(Conf::conf()) -> conf()

Initializes the directory server.

stop/1

stop(Conf::conf()) -> conf()

Shuts down the directory server.