DDraceNetwork Docs
http.h File Reference
#include <base/hash_ctxt.h>
#include <engine/shared/jobs.h>
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <deque>
#include <mutex>
#include <optional>
#include <unordered_map>
#include <engine/http.h>
Include dependency graph for http.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CTimeout
 
class  CHttpRequest
 
class  CHttp
 

Typedefs

typedef struct _json_value json_value
 

Enumerations

enum class  EHttpState {
  ERROR = -1 , QUEUED , RUNNING , DONE ,
  ABORTED
}
 
enum class  HTTPLOG { NONE , FAILURE , ALL }
 
enum class  IPRESOLVE { WHATEVER , V4 , V6 }
 

Functions

std::unique_ptr< CHttpRequestHttpHead (const char *pUrl)
 
std::unique_ptr< CHttpRequestHttpGet (const char *pUrl)
 
std::unique_ptr< CHttpRequestHttpGetFile (const char *pUrl, IStorage *pStorage, const char *pOutputFile, int StorageType)
 
std::unique_ptr< CHttpRequestHttpPost (const char *pUrl, const unsigned char *pData, size_t DataLength)
 
std::unique_ptr< CHttpRequestHttpPostJson (const char *pUrl, const char *pJson)
 
void EscapeUrl (char *pBuf, int Size, const char *pStr)
 
bool HttpHasIpresolveBug ()
 

Typedef Documentation

◆ json_value

typedef struct _json_value json_value

Enumeration Type Documentation

◆ EHttpState

enum class EHttpState
strong
Enumerator
ERROR 
QUEUED 
RUNNING 
DONE 
ABORTED 

◆ HTTPLOG

enum class HTTPLOG
strong
Enumerator
NONE 
FAILURE 
ALL 

◆ IPRESOLVE

enum class IPRESOLVE
strong
Enumerator
WHATEVER 
V4 
V6 

Function Documentation

◆ EscapeUrl()

void EscapeUrl ( char *  pBuf,
int  Size,
const char *  pStr 
)

◆ HttpGet()

std::unique_ptr< CHttpRequest > HttpGet ( const char *  pUrl)
inline

◆ HttpGetFile()

std::unique_ptr< CHttpRequest > HttpGetFile ( const char *  pUrl,
IStorage pStorage,
const char *  pOutputFile,
int  StorageType 
)
inline

◆ HttpHasIpresolveBug()

bool HttpHasIpresolveBug ( )

◆ HttpHead()

std::unique_ptr< CHttpRequest > HttpHead ( const char *  pUrl)
inline

◆ HttpPost()

std::unique_ptr< CHttpRequest > HttpPost ( const char *  pUrl,
const unsigned char *  pData,
size_t  DataLength 
)
inline

◆ HttpPostJson()

std::unique_ptr< CHttpRequest > HttpPostJson ( const char *  pUrl,
const char *  pJson 
)
inline