Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit.hpp
Go to the documentation of this file.
1#pragma once
26
27// Server and routing
28#include <orbit/server/App.hpp>
34
35// HTTP: requests, responses, bodies, the outbound client
43#include <orbit/http/Client.hpp>
44
45// WebSockets
48
49// Coroutines
53
54// OpenAPI / Swagger
56
57// Built-in middleware
74
75// Testing
77
78// Logging
80
81#include <memory>
82
83namespace orbit {
84
98using Writer = std::shared_ptr<http::ResponseWriter>;
105
106} // namespace orbit
a class to store JSON values
Definition json.hpp:19401
Represents an HTTP response to be sent to a client.
Definition HttpResponse.hpp:107
The main application class for the Orbit Framework.
Definition App.hpp:36
basic_json<> json
default specialization
Definition json.hpp:3422
HttpMethod
Represents standard HTTP methods.
Definition HttpRequest.hpp:28
HttpStatus
Standard HTTP status codes.
Definition HttpResponse.hpp:17
std::function< bool(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)> Middleware
Definition Router.hpp:19
std::function< void(http::HttpRequest &, std::shared_ptr< http::ResponseWriter >)> RouteHandler
Definition Router.hpp:18
Definition Awaitable.hpp:10
std::shared_ptr< http::ResponseWriter > Writer
What a handler or middleware receives to answer a request: std::shared_ptr<http::ResponseWriter>.
Definition orbit.hpp:98
routing::Middleware Middleware
Definition orbit.hpp:100
routing::RouteHandler RouteHandler
Definition orbit.hpp:99
Represents an incoming HTTP request.
Definition HttpRequest.hpp:54