Still trying to get it to compile
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
|
||||
// add includes properly...
|
||||
# include "Webserv.hpp"
|
||||
# include "MethodType.hpp"
|
||||
//# include "ConfigParser.hpp"
|
||||
# include "LocationConfig.hpp"
|
||||
|
||||
// a class that's all public? just so we have options?
|
||||
@@ -63,13 +65,16 @@ public:
|
||||
std::cout << "Server_name: " << server_name << '\n';
|
||||
std::cout << "root: " << root << '\n';
|
||||
std::cout << "index: ";
|
||||
for (int i = 0; i < index.size(); i++)
|
||||
for (size_t i = 0; i < index.size(); i++)
|
||||
std::cout << index[i] << " ";
|
||||
std::cout << "\nerror_pages: ";
|
||||
for (int i = 0; i < error_pages.size(); i++)
|
||||
std::cout << error_pages.first << "--" << error_pages.second << " ";
|
||||
for(std::map<int, std::string>::iterator it = error_pages.begin(); \
|
||||
it != error_pages.end(); it++)
|
||||
std::cout << it->first << "--" << it->second << " ";
|
||||
// for (size_t i = 0; i < error_pages.size(); i++)
|
||||
// std::cout << error_pages->first << "--" << error_pages->second << " ";
|
||||
std::cout << "\nallow_methods: ";
|
||||
for (int i = 0; i < allow_methods.size(); i++)
|
||||
for (size_t i = 0; i < allow_methods.size(); i++)
|
||||
std::cout << allow_methods[i] << " ";
|
||||
std::cout << "\nskiping Locations for now...\n";
|
||||
std::cout << "also skiping send_timeout and recv\n";
|
||||
|
||||
Reference in New Issue
Block a user