|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
#include <orbit/legacy_namespaces.hpp>#include <orbit/routing/Router.hpp>#include <string>#include <string_view>#include <utility>#include <vector>

Go to the source code of this file.
Classes | |
| struct | orbit::middleware::ProxyOptions |
| Options for Proxy middleware. More... | |
| struct | orbit::middleware::TargetNode |
| A target node for the load balancer. More... | |
| struct | orbit::middleware::LoadBalancerOptions |
| Options for LoadBalancer middleware. More... | |
| struct | orbit::middleware::detail::ProxiedRequest |
| An owned copy of the parts of a request the proxy forwards. The original HttpRequest, and the connection buffer its headers point into, are gone long before the asynchronous upstream connect completes. More... | |
| class | orbit::middleware::detail::ChunkedDecoder |
| Incremental decoder for a chunked upstream response body. More... | |
Namespaces | |
| namespace | orbit |
| namespace | orbit::middleware |
| namespace | orbit::middleware::detail |
Functions | |
| routing::Middleware | orbit::middleware::proxy (ProxyOptions options) |
| Returns a middleware that proxies requests to a single target URL (ip/hostname and port). | |
| routing::Middleware | orbit::middleware::proxy (const std::string &target_host, int target_port) |
| Returns a middleware that proxies requests to a single target URL. | |
| routing::Middleware | orbit::middleware::load_balancer (LoadBalancerOptions options) |
| Returns a middleware that load-balances requests across multiple upstream nodes. | |
| routing::Middleware | orbit::middleware::load_balancer (const std::vector< TargetNode > &nodes) |
| Returns a middleware that load-balances requests across multiple upstream nodes. | |
| ProxiedRequest | orbit::middleware::detail::snapshot_request (const http::HttpRequest &request) |
| std::string | orbit::middleware::detail::build_upstream_request (const ProxiedRequest &request, const std::string &host, int port, const std::string &strip_prefix, bool trust_forwarded_headers) |
Serializes the request sent upstream. Hop-by-hop headers are dropped case-insensitively, Host and Content-Length are set by the proxy, and client-supplied forwarding headers are replaced unless trust_forwarded_headers is true, in which case they are extended. | |