Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
App.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <vector>
#include <thread>
#include <orbit/server/Listener.hpp>
#include <orbit/server/EventLoop.hpp>
#include <orbit/server/Timer.hpp>
#include <orbit/routing/Router.hpp>
#include <orbit/routing/HandlerWrapper.hpp>
#include <orbit/config/Config.hpp>
#include <orbit/network/TlsContext.hpp>
#include <orbit/network/UdpSocket.hpp>
#include <atomic>
#include <chrono>
#include <functional>
#include <memory>
#include <mutex>
Include dependency graph for App.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  orbit::server::App
 The main application class for the Orbit Framework. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::server
 

Macros

#define ORBIT_DEFINE_ROUTER_TEMPLATES(METHOD)
 

Macro Definition Documentation

◆ ORBIT_DEFINE_ROUTER_TEMPLATES

#define ORBIT_DEFINE_ROUTER_TEMPLATES (   METHOD)
Value:
template <typename Handler> \
App& METHOD(const std::string& path, Handler&& handler) { \
return METHOD(path, routing::wrap_handler(std::forward<Handler>(handler))); \
} \
template <typename Handler> \
App& METHOD(const std::string& path, std::vector<routing::Middleware> mws, Handler&& handler) { \
return METHOD(path, std::move(mws), routing::wrap_handler(std::forward<Handler>(handler))); \
}
auto wrap_handler(Handler &&h) -> std::function< void(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)>
Definition HandlerWrapper.hpp:45