Module z_cowmachine_middleware

Middleware for cowmachine, extra Context based initializations.

Copyright © 2016-2021 Marc Worrell

Behaviours: cowboy_middleware.

Authors: Marc Worrell (marc@worrell.nl).

Description

Middleware for cowmachine, extra Context based initializations. This starts the https request processing after the site and dispatch rule have been selected by the z_sites_dispatcher middleware.

Function Index

execute/2Call cowmachine to handle the request with the given controller.

Function Details

execute/2

execute(Req, Env) -> {ok, Req, Env} | {stop, Req}

Call cowmachine to handle the request with the given controller. Prepare the metadata for lager and set the relevant Context arguments.


Generated by EDoc