This module defines the elli_handler
behaviour.
Required callback functions: handle/2
, handle_event/3
.
abstract datatype: callback()
A tuple of a callback_mod()
and callback_args()
.
abstract datatype: callback_args()
Arguments to pass to a callback_mod()
.
abstract datatype: callback_mod()
A callback module.
abstract datatype: event()
Fired throughout processing a request.
See elli_example_callback:handle_event/3
for descriptions.
result() = {elli:response_code() | ok, elli:headers(), {file, file:name_all()} | {file, file:name_all(), elli_util:range()}} | {elli:response_code() | ok, elli:headers(), elli:body()} | {elli:response_code() | ok, elli:body()} | {chunk, elli:headers()} | {chunk, elli:headers(), elli:body()} | ignore