2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef WEB_HTTP_TLS_IN_SERVER_H
43#define WEB_HTTP_TLS_IN_SERVER_H
45#include "net/in/stream/tls/SocketServer.h"
46#include "web/http/server/Response.h"
47#include "web/http/server/Server.h"
49#ifndef DOXYGEN_SHOULD_SKIP_THIS
53namespace web::http::tls::
in {
55 using Server = web::http::
server::
Server<net::in::stream::tls::SocketServer>;
#define APPLICATION(req, res)
Config & getConfig() const
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
void send(const std::string &chunk)
WebAppT(const std::string &name)
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
ConfigTls & setCert(const std::string &cert)
ConfigTls & setCertKey(const std::string &certKey)
ConfigTls & setCertKeyPassword(const std::string &certKeyPassword)
std::string toString(bool expanded=true) const override
void listen(const std::string &ipOrHostname, uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
void listen(uint16_t port, const std::function< void(const SocketAddress &, core::socket::State)> &onStatus) const
ConfigSocketServer & setReuseAddress(bool reuseAddress=true)
int main(int argc, char *argv[])