37class ContextApp :
public BaseApp {
39 std::shared_ptr<StatusHandlerNotFound<ContextType>> notFoundErrorHandler
40 = std::make_shared<StatusHandlerNotFound<ContextType>>();
41 std::shared_ptr<StatusHandler500<ContextType>> errorHandler
42 = std::make_shared<StatusHandler500<ContextType>>();
44 ContextApp(
AppConfig&& config) : BaseApp(std::move(config)) {}
45 virtual ~ContextApp() =
default;
48 void useNotFoundErrorHandler() {
49 notFoundErrorHandler = std::make_shared<T>();
53 void use500ErrorHandler() {
54 errorHandler = std::make_shared<T>();