-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathutils.hpp
More file actions
31 lines (24 loc) · 758 Bytes
/
utils.hpp
File metadata and controls
31 lines (24 loc) · 758 Bytes
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
31
#pragma once
#include <algorithm>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include "boost/asio/ip/tcp.hpp"
#include "boost/asio/strand.hpp"
#include "boost/beast/core.hpp"
#include "boost/beast/http.hpp"
#include "boost/beast/version.hpp"
#include "boost/config.hpp"
#include "boost/uuid/uuid.hpp"
#include "expresscpp/key.hpp"
#include "expresscpp/options.hpp"
namespace expresscpp {
std::string boostUUIDToString(const boost::uuids::uuid& uuid);
std::string getFileName(const std::string& s);
// Return a reasonable mime type based on the extension of a file.
boost::beast::string_view mime_type(boost::beast::string_view path);
} // namespace expresscpp