Thank you for the variety of approaches. I really appreciate it.
I'll probably try to start with a global, and eventually move to use the lambda or partial function approach, passing in a struct of things. A lot of my routes break from REST
On Sun, 12 Jul 2015 09:43:20 GMT, Sönke Ludwig wrote:
On Sun, 12 Jul 2015 09:32:17 GMT, Taylor Gronka wrote:
Oh - or attaching
m_db
toreq
would be nice.There is a
params
field inHTTPServerRequest
that is meant for attaching data to the request, but it currently only supportsstring
. There was a plan to support aVariant
instead, just the transition path wasn't clear at the time. Maybe we should revive that.
IMO, that would be ideal, allowing flexibility without the need to work around the framework or using globals.
Thanks again