View Source erf_preprocess_middleware behaviour (erf v0.1.2)

Behaviour for erf's preprocessing middlewares.

Summary

Types

t/0
A module that implements this behaviour.

Types

-type t() :: module().
A module that implements this behaviour.

Callbacks

-callback preprocess(Request) -> Result
                        when
                            Request :: erf:request(),
                            Result :: {stop, Response} | {stop, Response, NewRequest} | NewRequest,
                            NewRequest :: erf:request(),
                            Response :: erf:response().