forked from awwit/httpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerApplicationSettings.h
More file actions
37 lines (30 loc) · 867 Bytes
/
ServerApplicationSettings.h
File metadata and controls
37 lines (30 loc) · 867 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
32
33
34
35
36
37
#pragma once
#include "../transfer/AppRequest.h"
#include "../transfer/AppResponse.h"
#include <unordered_set>
#include <string>
#include <functional>
namespace HttpServer
{
struct ServerApplicationSettings
{
std::unordered_set<int> ports;
std::unordered_set<int> tls_ports;
std::string root_dir;
std::string temp_dir;
size_t request_max_size;
size_t module_index;
std::string server_module;
std::string server_module_update;
std::string cert_file;
std::string key_file;
std::string chain_file;
std::string crl_file;
std::string stapling_file;
std::string dh_file;
std::function<int(Transfer::app_request *, Transfer::app_response *)> application_call;
std::function<void(void *, size_t)> application_clear;
std::function<bool(const char *)> application_init;
std::function<void(const char *)> application_final;
};
}