[Cppcms-users] Read-only context
Brought to you by:
artyom-beilis
From: Nazım C. B. <naz...@ne...> - 2017-01-17 17:04:44
|
Hi Artyom, First of all, thank you (and all other contributors) for developing such good C++ web development library. Now, in one of application I am developing; I need to pass HTTP context in read-only manner. What I am trying to achieve is; writing predicate functions taking const reference to context, and checking some conditions related with the request. With current version of http::context and application classes, this is not possible out-of-box. That's why I attached a patch to add "const-correct" member functions; which works well for my case. If it's possible, could you apply patch to trunk? I prefer to not fork a project just for small changes. Regards, Nazim. |