Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
Router.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <orbit/http/HttpRequest.hpp>
#include <orbit/http/HttpResponse.hpp>
#include <orbit/http/WebSocketConnection.hpp>
#include <orbit/http/ResponseWriter.hpp>
#include <orbit/openapi/OpenApi.hpp>
#include <functional>
#include <exception>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <string>
#include <memory>
Include dependency graph for Router.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  orbit::routing::WsRoute
 
struct  orbit::routing::ErrorScope
 
struct  orbit::routing::DynamicRoute
 
class  orbit::routing::Router
 Manages routing of HTTP requests to their appropriate handlers. More...
 
class  orbit::routing::Router::RouteBuilder
 A builder class for fluent route configuration. More...
 
struct  orbit::routing::Router::StaticRoute
 

Namespaces

namespace  orbit
 
namespace  orbit::routing
 

Typedefs

using orbit::routing::RouteHandler = std::function< void(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)>
 
using orbit::routing::Middleware = std::function< bool(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)>
 
using orbit::routing::WsHandler = std::function< void(http::websocket::WebSocketConnection &)>
 
using orbit::routing::ErrorHandler = std::function< void(const std::exception &, http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)>