mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 02:09:49 +00:00
25 lines
681 B
C++
25 lines
681 B
C++
//
|
|
// Created by loki on 6/3/19.
|
|
//
|
|
|
|
#ifndef SUNSHINE_NVHTTP_H
|
|
#define SUNSHINE_NVHTTP_H
|
|
|
|
#include "thread_safe.h"
|
|
#include <Simple-Web-Server/server_http.hpp>
|
|
#include <Simple-Web-Server/server_https.hpp>
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#define CA_DIR SUNSHINE_ASSETS_DIR "/demoCA"
|
|
#define PRIVATE_KEY_FILE CA_DIR "/cakey.pem"
|
|
#define CERTIFICATE_FILE CA_DIR "/cacert.pem"
|
|
|
|
namespace nvhttp {
|
|
void start(std::shared_ptr<safe::signal_t> shutdown_event);
|
|
template<class T>
|
|
void pin(std::shared_ptr<typename SimpleWeb::ServerBase<T>::Response> response, std::shared_ptr<typename SimpleWeb::ServerBase<T>::Request> request);
|
|
} // namespace nvhttp
|
|
|
|
#endif //SUNSHINE_NVHTTP_H
|