Author: | Adrian Perez <aperez@igalia.com> |
---|---|
Copyright: | 2008-2009 Igalia S.L. |
License: | GPL3 |
Abstract
Billet container implementation. This module is used by the billetd daemon included with Bill.
Contents
billetd_debug format [ arg1 [ arg2 ... [ argN ] ] ]
When the BILLETD_DEBUG variable is set, prints a message to standard error. Otherwise does nothing. The format string works the same as for the printf builtin.
billetd_map_context [ path ]
Maps an URL to an existing Billet context. Contexts are searched in the directory referenced by the BILLET_BASE variable which, by default, points to the current working directory.
If a path is not supplied, then $PATH_INFO will be used instead. The function defines the $BILLET_CONTEXT and $BILLET_PATH variables, with the obvious meaning.
billetd_set_stdvars
Defines the standard set of variables. Note that $BILLET_CONTEXT must be defined in order for this to work. You can map an URI/path to its context name using billetd_map_context.
billet_send_resource
billetd_handle_http_GET
billetd_handle_http_POST
billetd_run_hook name [ condition-file ]
billet_server_run handlers