Skip to content
davidmoreno edited this page May 10, 2011 · 2 revisions

Currently there handlers are built in. Full up to date list can be found at src/onion/handlers. These handlers are in a separate library, and must be linked with it if they are going to be used. This is this way as in many cases the user will not want to use them and stick with custom handlers.

There is one exception and it is the url handler, that is builtin into the core libonion.

The list of handlers:

  • url is in the core libonion, and maps regular expressions to handlers.
  • auth_pam PAM authentication via basic auth. It can use PAM system to allow auth via passwd, htpasswd, LDAP... any PAM known auth module.
  • exportlocal Exports a local file or directory to the server.
  • opack Simple embedding of files using opack.
  • static Returns a simple static text and code.

opack is superseded by otemplates, but may be useful for other use cases. path and regexp are superseded by url, but they are more efficient depending on the case.

Clone this wiki locally