Dancer::Plugin::Res - Syntax sugar for setting the status and returning a response

This Dancer plugin provides the keyword "res()", which stands for response. It allows you to set the response and return a body in one shot. return res 400, { msg => reason }; is equivalent to: status 400; return { msg => reason }; I made this plugin...

IRONCAMEL/Dancer-Plugin-Res-0.0003 - 18 May 2012 09:21:47 GMT

1 result (0.016 seconds)