WebFramework v3.0.12
Web framework for C++.
Loading...
Searching...
No Matches
HTTPSSingleton.h
1#pragma once
2
3#include "Import/WebFrameworkCore.h"
4
5namespace framework
6{
7 namespace utility
8 {
10 {
11 private:
12 bool useHTTPS;
13 std::filesystem::path pathToCertificate;
14 std::filesystem::path pathToKey;
15
16 private:
18
19 ~HTTPSSingleton() = default;
20
21 public:
22 static HTTPSSingleton& get();
23
24 void setUseHTTPS(bool useHTTPS);
25
26 void setPathToCertificate(const std::filesystem::path& pathToCertificate);
27
28 void setPathToKey(const std::filesystem::path& pathToKey);
29
30 bool getUseHTTPS() const;
31
32 const std::filesystem::path& getPathToCertificate() const;
33
34 const std::filesystem::path& getPathToKey() const;
35 };
36 }
37}