The function handler get a lambda expression in the constructor. it will call that expression to get the result This is suited for very simple handlers
|
| function_handler (const handle_function &f_handle, const sstring &type) |
|
| function_handler (const future_handler_function &f_handle, const sstring &type) |
|
| function_handler (const request_function &_handle, const sstring &type) |
|
| function_handler (const json_request_function &_handle) |
|
| function_handler (const future_json_function &_handle) |
|
| function_handler (const function_handler &)=default |
|
future< std::unique_ptr< http::reply > > | handle (const sstring &path, std::unique_ptr< http::request > req, std::unique_ptr< http::reply > rep) override |
|
handler_base & | mandatory (const sstring ¶m) |
|