From 728638b1e4af7164455541507164dda1d2034908 Mon Sep 17 00:00:00 2001 From: Quinten Date: Wed, 22 Oct 2025 15:37:00 +0200 Subject: [PATCH] feat(config): add direcive for timeout --- webserv/config/directive/DirectiveFactory.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webserv/config/directive/DirectiveFactory.hpp b/webserv/config/directive/DirectiveFactory.hpp index 0c0933c..ecbaeb9 100644 --- a/webserv/config/directive/DirectiveFactory.hpp +++ b/webserv/config/directive/DirectiveFactory.hpp @@ -20,7 +20,7 @@ class DirectiveFactory std::string_view context; }; - constexpr static std::array supportedDirectives = {{ + constexpr static std::array supportedDirectives = {{ {.name = "listen", .type = "IntDirective", .context = "S"}, {.name = "host", .type = "StringDirective", .context = "S"}, {.name = "server_name", .type = "StringDirective", .context = "S"}, @@ -36,6 +36,7 @@ class DirectiveFactory {.name = "upload_enabled", .type = "BoolDirective", .context = "gsl"}, {.name = "upload_store", .type = "StringDirective", .context = "gsl"}, {.name = "redirect", .type = "VectorDirective", .context = "l"}, + {.name = "timeout", .type = "IntDirective", .context = "gsl"}, }}; private: