flatten 20260225
This commit is contained in:
25
tjp/core/http/Component.hpp
Executable file
25
tjp/core/http/Component.hpp
Executable file
@@ -0,0 +1,25 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Component.h"
|
||||
#include "Method.h"
|
||||
#include "Types.h"
|
||||
|
||||
#include "Server.h"
|
||||
#include <tjp/core/string/String.hpp>
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user