replacement: reference getters

This commit is contained in:
Talyx
2022-02-06 22:05:49 +03:00
parent 93003724d2
commit 0d3acb7d26
6 changed files with 37 additions and 64 deletions

View File

@@ -16,6 +16,12 @@ struct location
std::map<int, std::string> redirect;
};
struct serverListen
{
std::string ip;
int port;
};
class ServerConfig
{
public:
@@ -39,12 +45,12 @@ public:
void setLocations(std::vector<location *>);
void setRoot(TOMLMap *);
std::string getServerName(void);
std::string getHost(void);
int getPort(void);
int getClientBodySize(void);
std::vector<location *> getLocations(void);
std::map<int, std::string> getErrorPages(void);
std::string &getServerName(void);
std::string &getHost(void);
int &getPort(void);
int &getClientBodySize(void);
std::vector<location *> &getLocations(void);
std::map<int, std::string> &getErrorPages(void);
TOMLMap *getRoot(void);
public: