Still trying to get it to compile

This commit is contained in:
Me
2022-07-29 23:29:19 +02:00
parent 3ff62f5ddc
commit 001ad6becf
8 changed files with 209 additions and 147 deletions

View File

@@ -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";