Module elli_handler
December 27, 2016 ยท View on GitHub
This module defines the elli_handler behaviour.
Required callback functions: handle/2, handle_event/3.
Data Types
callback()
abstract datatype: callback()
A tuple of a callback_mod() and callback_args().
callback_args()
abstract datatype: callback_args()
Arguments to pass to a callback_mod().
callback_mod()
abstract datatype: callback_mod()
A callback module.
event()
abstract datatype: event()
Fired throughout processing a request.
See elli_example_callback:handle_event/3 for descriptions.
result()
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