구조 #include #include class Handler { public: Handler() = default; virtual void execute(std::string& request) = 0; virtual void setNext(Handler* next) = 0; }; class BaseHandler : public Handler { public: BaseHandler() = default; virtual void execute(std::string& request) = 0; virtual void handleNext(std::string& request) { if (next_) next_->execute(request); } virtual void setNext(Handler* next) ..