Module openflax.handler.autocomplete

Filename auto-completion handler for OpenFlax.

Behaviour: openflax.handler.

Description

Filename auto-completion handler for OpenFlax.

This handler should be invoked from cfg_openflax_dispatch when the URI matches a pattern of "* " or similar. The trailing space (shown as a plus sign in the URL) indicates the filename is not complete. This handler will complete that filename, if possible, and redirect the user agent to that resource.

This handler requires openflax.handler.file.

Function Index

serve/1Redirects the user agent from a partial filename to a full filename matching the partial filename, if any.
start/1Initializes the filename auto-completion handler.
stop/1Shuts down the auto-completion handler.

Function Details

serve/1

serve(Conf::conf()) -> ok | {error, Reason}

Redirects the user agent from a partial filename to a full filename matching the partial filename, if any.

start/1

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

Initializes the filename auto-completion handler.

stop/1

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

Shuts down the auto-completion handler.