Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit Namespace Reference

Namespaces

namespace  concurrency
 
namespace  config
 
namespace  database
 
namespace  http
 
namespace  jwt
 
namespace  middleware
 
namespace  network
 
namespace  openapi
 
namespace  orm
 
namespace  routing
 
namespace  server
 
namespace  testing
 
namespace  utils
 
namespace  websocket
 

Typedefs

Short aliases for the names an application writes constantly.

Everything here is also reachable at its full, namespaced name (orbit::server::App, orbit::http::HttpResponse, ...); these are nothing more than using aliases to it, so either spelling works interchangeably, including in code that mixes the two.

using App = server::App
 
using Request = http::HttpRequest
 
using Response = http::HttpResponse
 
using Status = http::HttpStatus
 
using Method = http::HttpMethod
 
using Writer = std::shared_ptr< http::ResponseWriter >
 What a handler or middleware receives to answer a request: std::shared_ptr<http::ResponseWriter>.
 
using RouteHandler = routing::RouteHandler
 
using Middleware = routing::Middleware
 
using json = nlohmann::json
 nlohmann::json, Orbit's JSON type, already used throughout Request/Response (req.json(), res.json(...)).
 

Typedef Documentation

◆ App

using orbit::App = typedef server::App

◆ json

using orbit::json = typedef nlohmann::json

nlohmann::json, Orbit's JSON type, already used throughout Request/Response (req.json(), res.json(...)).

◆ Method

◆ Middleware

◆ Request

◆ Response

◆ RouteHandler

◆ Status

◆ Writer

using orbit::Writer = typedef std::shared_ptr<http::ResponseWriter>

What a handler or middleware receives to answer a request: std::shared_ptr<http::ResponseWriter>.