// TJP COPYRIGHT HEADER #pragma once #include "Component.h" #include "Method.h" #include "Types.h" #include "Server.h" #include namespace tjp::core::http { struct Component { using Server = http::Server; using method = http::method; virtual void use(Server &, const String &urlPrefix) = 0; virtual void onBegin() {} virtual void onEnd() {} } ; } // namespace