|
Hermes 0.7.0
Linux game streaming host
|
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"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 |
Definitions for common HTTP.
Definition in file httpcommon.cpp.
| #define BOOST_BIND_GLOBAL_PLACEHOLDERS |
Definition at line 5 of file httpcommon.cpp.
| int http::create_creds | ( | const std::string & | pkey, |
| const std::string & | cert ) |
Definition at line 148 of file httpcommon.cpp.
| bool http::download_file | ( | const std::string & | url, |
| const std::string & | file, | ||
| long | ssl_version ) |
Definition at line 199 of file httpcommon.cpp.
| int http::init | ( | ) |
Definition at line 47 of file httpcommon.cpp.
| int http::reload_user_creds | ( | const std::string & | file | ) |
Definition at line 134 of file httpcommon.cpp.
| 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.
| std::string http::url_escape | ( | const std::string & | url | ) |
Definition at line 234 of file httpcommon.cpp.
| std::string http::url_get_host | ( | const std::string & | url | ) |
Definition at line 241 of file httpcommon.cpp.
| bool http::user_creds_exist | ( | const std::string & | file | ) |
Definition at line 116 of file httpcommon.cpp.
| net::net_e http::origin_web_ui_allowed |
Definition at line 45 of file httpcommon.cpp.
| std::string http::unique_id |
Definition at line 43 of file httpcommon.cpp.
| uuid_util::uuid_t http::uuid |
Definition at line 44 of file httpcommon.cpp.