Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
Proxy.hpp File Reference
#include <orbit/routing/Router.hpp>
#include <vector>
Include dependency graph for Proxy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  middleware::ProxyOptions
 Options for Proxy middleware. More...
 
struct  middleware::TargetNode
 A target node for the load balancer. More...
 
struct  middleware::LoadBalancerOptions
 Options for LoadBalancer middleware. More...
 

Namespaces

namespace  middleware
 

Functions

routing::Middleware middleware::proxy (ProxyOptions options)
 Returns a middleware that proxies requests to a single target URL (ip/hostname and port).
 
routing::Middleware middleware::proxy (const std::string &target_host, int target_port)
 Returns a middleware that proxies requests to a single target URL.
 
routing::Middleware middleware::load_balancer (LoadBalancerOptions options)
 Returns a middleware that load-balances requests across multiple upstream nodes.
 
routing::Middleware middleware::load_balancer (const std::vector< TargetNode > &nodes)
 Returns a middleware that load-balances requests across multiple upstream nodes.