a few good ideas as to how to better handle the config parsing

This commit is contained in:
Me
2022-07-28 18:07:16 +02:00
parent dfb8be3017
commit 6265019d3e
2 changed files with 59 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
/* By: me <erlazo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/11 23:01:41 by me #+# #+# */
/* Updated: 2022/07/25 20:56:53 by me ### ########.fr */
/* Updated: 2022/07/27 19:27:57 by me ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,6 +16,21 @@
# include "Webserv.hpp" // easier to just do this?
// This is gonna be temporary cuz i don't konw if i like it
#define MAX_REQUEST_SIZE 2048
#define MAX_URI_SIZE 64
#define BSIZE 1024
enum MethodType
{
GET,
POST,
DELETE,
INVALID,
};
class ConfigParser {
public:
@@ -47,6 +62,10 @@ private:
int _check_for_semicolon(std::string line); // const?
// just for testing purposes
void _print_content() const;
};