-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.hpp
30 lines (27 loc) · 1.29 KB
/
helper.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* helper.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ychen2 <ychen2@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/25 21:12:13 by ychen2 #+# #+# */
/* Updated: 2024/08/25 21:13:35 by ychen2 ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <map>
#include <cctype>
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sstream>
#include <fstream>
#include <exception>
std::string getMimeType(const std::string& fileName);
std::vector<std::string> split(const std::string &str, char delimiter);
std::string find_cgi_path(const std::string &program);