Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
httpcommon.cpp File Reference

Definitions for common HTTP. More...

#include <filesystem>
#include <fstream>
#include <utility>
#include <boost/asio/ssl/context.hpp>
#include <boost/asio/ssl/context_base.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <curl/curl.h>
#include <Simple-Web-Server/server_http.hpp>
#include <Simple-Web-Server/server_https.hpp>
#include "config.h"
#include "crypto.h"
#include "file_handler.h"
#include "httpcommon.h"
#include "logging.h"
#include "network.h"
#include "nvhttp.h"
#include "platform/common.h"
#include "process.h"
#include "rtsp.h"
#include "utility.h"
Include dependency graph for httpcommon.cpp:

Go to the source code of this file.

Functions

int http::reload_user_creds (const std::string &file)
bool http::user_creds_exist (const std::string &file)
int http::init ()
int http::save_user_creds (const std::string &file, const std::string &username, const std::string &password, bool run_our_mouth)
int http::create_creds (const std::string &pkey, const std::string &cert)
bool http::download_file (const std::string &url, const std::string &file, long ssl_version)
std::string http::url_escape (const std::string &url)
std::string http::url_get_host (const std::string &url)

Variables

std::string http::unique_id
uuid_util::uuid_t http::uuid
net::net_e http::origin_web_ui_allowed

Detailed Description

Definitions for common HTTP.

Definition in file httpcommon.cpp.

Macro Definition Documentation

◆ BOOST_BIND_GLOBAL_PLACEHOLDERS

#define BOOST_BIND_GLOBAL_PLACEHOLDERS

Definition at line 5 of file httpcommon.cpp.

Function Documentation

◆ create_creds()

int http::create_creds ( const std::string & pkey,
const std::string & cert )

Definition at line 148 of file httpcommon.cpp.

◆ download_file()

bool http::download_file ( const std::string & url,
const std::string & file,
long ssl_version )

Definition at line 199 of file httpcommon.cpp.

◆ init()

int http::init ( )

Definition at line 47 of file httpcommon.cpp.

◆ reload_user_creds()

int http::reload_user_creds ( const std::string & file)

Definition at line 134 of file httpcommon.cpp.

◆ save_user_creds()

int http::save_user_creds ( const std::string & file,
const std::string & username,
const std::string & password,
bool run_our_mouth )

Definition at line 71 of file httpcommon.cpp.

◆ url_escape()

std::string http::url_escape ( const std::string & url)

Definition at line 234 of file httpcommon.cpp.

◆ url_get_host()

std::string http::url_get_host ( const std::string & url)

Definition at line 241 of file httpcommon.cpp.

◆ user_creds_exist()

bool http::user_creds_exist ( const std::string & file)

Definition at line 116 of file httpcommon.cpp.

Variable Documentation

◆ origin_web_ui_allowed

net::net_e http::origin_web_ui_allowed

Definition at line 45 of file httpcommon.cpp.

◆ unique_id

std::string http::unique_id

Definition at line 43 of file httpcommon.cpp.

◆ uuid

uuid_util::uuid_t http::uuid

Definition at line 44 of file httpcommon.cpp.