From 86ec0b5386fc2078891a829026844d2ec21ea7db Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 8 Oct 2025 00:58:42 +0200 Subject: Add http module and implement basic http server --- src/str.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/str.hh') diff --git a/src/str.hh b/src/str.hh index e1ee549..1c618ee 100644 --- a/src/str.hh +++ b/src/str.hh @@ -13,6 +13,13 @@ void split(std::string_view str, std::vector& out, char separator = ' ', bool keep_empty = false); +void split(std::string_view str, std::vector& out, + std::string_view separator, bool keep_empty = false); + +[[nodiscard]] std::vector split(std::string_view str, + std::string_view separator, + bool keep_empty = false); + [[nodiscard]] std::string_view trim(std::string_view str); -- cgit v1.2.3-70-g09d2