You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
517 B
15 lines
517 B
#pragma once
|
|
#include "webserv.hpp"
|
|
|
|
class Server : public Route {
|
|
string _name; ///< The server name
|
|
std::map<string, Route *> _routes; ///< The server's routings with a route object as object and his location as key.
|
|
|
|
public:
|
|
std::vector<ip_port_t> _listens; ///< The list of listens the server which are linked to the server.
|
|
Server(JSONNode *server);
|
|
~Server(void);
|
|
std::vector<Master *> create_masters(JSONNode *server);
|
|
Route *choose_route(string uri);
|
|
string getName(void);
|
|
};
|
|
|