View Source erf_postprocess_middleware behaviour (erf v0.1.2)

Behaviour for erf's postprocessing middlewares.

Summary

Types

t/0
A module that implements this behaviour.

Types

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

Callbacks

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