$darkmode
registrar.hpp File Reference
#include <functional>
#include <initializer_list>
#include <map>
#include <mutex>
#include <string>
#include <utility>
#include <cloe/handler.hpp>
#include "oak/route_muxer.hpp"
Include dependency graph for registrar.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  oak::Registrar
 
class  oak::ProxyRegistrar< T >
 
class  oak::StaticRegistrar
 
class  oak::LockedRegistrar
 
class  oak::BufferRegistrar
 

Typedefs

using oak::Middleware = std::function< cloe::Handler(cloe::Handler)>
 
using oak::Logger = std::function< void(const std::string &)>
 

Functions

Middleware oak::chain_middleware (Middleware x, Middleware y)
 

Detailed Description

Function Documentation

◆ chain_middleware()

Middleware oak::chain_middleware ( Middleware  x,
Middleware  y 
)

Return a Middleware that performs x then y on incoming handlers.

This is effectively:

return y(x(h));

Here is the call graph for this function:
Here is the caller graph for this function: