Sunshine
v2025.118.151840
Self-hosted game stream host for Moonlight.
httpcommon.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include "
network.h
"
8
#include "
thread_safe.h
"
9
10
namespace
http {
11
12
int
13
init
();
14
int
15
create_creds(
const
std::string &pkey,
const
std::string &cert);
16
int
17
save_user_creds(
18
const
std::string &file,
19
const
std::string &username,
20
const
std::string &password,
21
bool
run_our_mouth =
false
);
22
23
int
24
reload_user_creds(
const
std::string &file);
25
bool
26
download_file(
const
std::string &url,
const
std::string &file);
27
std::string
28
url_escape(
const
std::string &url);
29
std::string
30
url_get_host(
const
std::string &url);
31
32
extern
std::string unique_id;
33
extern
net::net_e
origin_web_ui_allowed;
34
35
}
// namespace http
display_device::init
std::unique_ptr< platf::deinit_t > init(const std::filesystem::path &persistence_filepath, const config::video_t &video_config)
Initialize the implementation and perform the initial state recovery (if needed).
Definition
display_device.cpp:721
network.h
Declarations for networking related functions.
net::net_e
net_e
Definition
network.h:36
thread_safe.h
Declarations for thread-safe data structures.
src
httpcommon.h
Generated by
1.10.0