meltwater / served

A C++11 RESTful web server library
MIT License
710 stars 174 forks source link

question:is there any way to regist interface instead of std:function in methods_handler post and get funcion #40

Open ZhaoGuangYue1986 opened 6 years ago

ZhaoGuangYue1986 commented 6 years ago

question:is there any way to regist interface instead of std:function in methods_handler post and get funcion

Jeffail commented 6 years ago

Hey @ostack, you could use std::bind to create a std::function from a class instance.