43 lines
771 B
C++
Raw Permalink Normal View History

2025-03-07 22:13:09 +01:00
#ifndef seafire__routing__builder_hxx_
#define seafire__routing__builder_hxx_
#include <seafire/routing/routing-table.hxx>
#include <seafire/routing/virtual-host.hxx>
#include <seafire/server/request-handler.hxx>
#include <list>
#include <string>
namespace seafire::routing
{
class builder_t
{
public:
builder_t();
builder_t(builder_t const&) = delete;
builder_t(builder_t&&) = delete;
std::list<virtual_host_t> const&
virtual_hosts() const;
virtual_host_t&
add_virtual_host(std::string);
routing_table_t
build() const;
builder_t& operator=(builder_t const&) = delete;
builder_t& operator=(builder_t&&) = delete;
private:
std::list<virtual_host_t> _vhosts;
};
} // namespace seafire::routing
#endif