26 lines
402 B
C++
Executable File
26 lines
402 B
C++
Executable File
// 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
|
|
|