Module openflax.handler.rewrite

URI rewriting handler for OpenFlax.

Behaviour: openflax.handler.

Description

URI rewriting handler for OpenFlax.

This handler can be invoked from cfg_openflax_dispatch when the URI matches a some pattern. The URI will be rewritten according to certain rules, and the user agent will be redirected to the new URI.

Function Index

serve/1Rewrites the URI and redirects the user agent there.
start/1Initializes the rewriting handler.
stop/1Shuts down the rewriting handler.

Function Details

serve/1

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

Rewrites the URI and redirects the user agent there.

start/1

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

Initializes the rewriting handler.

stop/1

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

Shuts down the rewriting handler.