Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
Loading...
Searching...
No Matches
httpcommon.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// lib includes
8
#include <curl/curl.h>
9
10
// local includes
11
#include "
network.h
"
12
#include "
thread_safe.h
"
13
#include "
uuid.h
"
14
15
namespace
http {
16
17
int
init();
18
int
create_creds(
const
std::string &pkey,
const
std::string &cert);
19
int
save_user_creds(
20
const
std::string &file,
21
const
std::string &username,
22
const
std::string &password,
23
bool
run_our_mouth =
false
24
);
25
26
int
reload_user_creds(
const
std::string &file);
27
bool
user_creds_exist(
const
std::string &file);
28
bool
download_file(
const
std::string &url,
const
std::string &file,
long
ssl_version = CURL_SSLVERSION_TLSv1_2);
29
std::string url_escape(
const
std::string &url);
30
std::string url_get_host(
const
std::string &url);
31
32
extern
std::string unique_id;
33
extern
uuid_util::uuid_t uuid;
34
extern
net::net_e
origin_web_ui_allowed;
35
36
}
// namespace http
network.h
Declarations for networking related functions.
net::net_e
net_e
Definition
network.h:39
thread_safe.h
Declarations for thread-safe data structures.
uuid.h
Declarations for UUID generation.
src
httpcommon.h
Generated by
1.18.0