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

Declarations for common HTTP. More...

#include <curl/curl.h>
#include "network.h"
#include "thread_safe.h"
#include "uuid.h"
Include dependency graph for httpcommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int http::init ()
int http::create_creds (const std::string &pkey, const std::string &cert)
int http::save_user_creds (const std::string &file, const std::string &username, const std::string &password, bool run_our_mouth)
int http::reload_user_creds (const std::string &file)
bool http::user_creds_exist (const std::string &file)
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)

Detailed Description

Declarations for common HTTP.

Definition in file httpcommon.h.

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.