m_req (zotonic_core v1.0.0-rc.14)

Model for the accessing the HTTP request properties. Exposes Cowmachine's wrq.erl

Link to this section Summary

Functions

Fetch the field from the cowmachine_req interface.
Fetch the value for the key from a model source

Link to this section Functions

Link to this function

get(What, Context)

-spec get(atom(), z:context() | cowboy_req:req() | undefined) -> any().
Fetch the field from the cowmachine_req interface.
Link to this function

m_get(Rest, Msg, Context)

-spec m_get(list(), zotonic_model:opt_msg(), z:context()) -> zotonic_model:return().
Fetch the value for the key from a model source