first commit: echo server

This commit is contained in:
Antonio Cossari
2026-09-07 00:45:35 +02:00
commit b15ce130f9
47 changed files with 2614 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Result.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: acossari <acossari@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/08/20 20:02:19 by acossari #+# #+# */
/* Updated: 2026/08/21 20:02:26 by acossari ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <expected>
#include "http/HttpStatus.hpp"
namespace webserv {
// Discarding a Result can hide a request error. Neither this alias nor
// std::expected can enforce [[nodiscard]], so every function returning a
// Result must declare the attribute itself.
template <typename T>
using Result = std::expected<T, HttpStatus>;
} // namespace webserv