Diarkis C++Client Library API Document
http.h File Reference
#include "diarkis/common.h"
#include "diarkis/config.h"
#include "diarkis/system/result.h"
#include "diarkis/network/tcp.h"
#include "logging/LoggerFactory.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.

Functions

Diarkis::System::Result ParseKeyValue (std::shared_ptr< IDiarkisLogger > logger, const Diarkis::StdString &response, size_t offset, const Diarkis::StdString &key, Diarkis::StdString &value)
 
Diarkis::System::Result ParseKeyValue (std::shared_ptr< IDiarkisLogger > logger, const char *response, size_t offset, const char *key, char *value, size_t valueBufSize)
 
Diarkis::System::Result FetchAuthInfo (std::shared_ptr< IDiarkisLogger > logger, const Diarkis::StdString &authEndpoint, const char *clientKey, const char *serverType, char *endpoint, size_t endpointBuf, struct AuthInfo *auth)
 
Diarkis::System::Result HttpConnect (std::shared_ptr< IDiarkisLogger > logger, const char *host, const char *clientKey, const uint64_t &uid, const char *serverType, char *endpoint, size_t endpointBuf, struct AuthInfo *auth)
 
Diarkis::System::Result HttpConnect (std::shared_ptr< IDiarkisLogger > logger, const char *host, const char *clientKey, const char *uid, const char *serverType, char *endpoint, size_t endpointBuf, struct AuthInfo *auth)
 
bool CheckContentType (Diarkis::StdString headerValue, std::initializer_list< Diarkis::StdString > expected)
 
Diarkis::System::Result TryParse (std::shared_ptr< IDiarkisLogger > logger, const Diarkis::StdString &response, const Diarkis::StdString &serverType, Diarkis::StdString &endpoint, Diarkis::StdVector< uint8_t > &sid, Diarkis::StdVector< uint8_t > &key, Diarkis::StdVector< uint8_t > &iv, Diarkis::StdVector< uint8_t > &mackey)
 
Diarkis::System::Result TryParse (std::shared_ptr< IDiarkisLogger > logger, const char *response, const char *serverType, char *endpoint, size_t endpointBuf, struct AuthInfo *auth)
 

Function Documentation

◆ ParseKeyValue() [1/2]

Diarkis::System::Result ParseKeyValue ( std::shared_ptr< IDiarkisLogger logger,
const Diarkis::StdString response,
size_t  offset,
const Diarkis::StdString key,
Diarkis::StdString value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseKeyValue() [2/2]

Diarkis::System::Result ParseKeyValue ( std::shared_ptr< IDiarkisLogger logger,
const char *  response,
size_t  offset,
const char *  key,
char *  value,
size_t  valueBufSize 
)
Here is the call graph for this function:

◆ FetchAuthInfo()

Diarkis::System::Result FetchAuthInfo ( std::shared_ptr< IDiarkisLogger logger,
const Diarkis::StdString authEndpoint,
const char *  clientKey,
const char *  serverType,
char *  endpoint,
size_t  endpointBuf,
struct AuthInfo auth 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HttpConnect() [1/2]

Diarkis::System::Result HttpConnect ( std::shared_ptr< IDiarkisLogger logger,
const char *  host,
const char *  clientKey,
const uint64_t &  uid,
const char *  serverType,
char *  endpoint,
size_t  endpointBuf,
struct AuthInfo auth 
)

◆ HttpConnect() [2/2]

Diarkis::System::Result HttpConnect ( std::shared_ptr< IDiarkisLogger logger,
const char *  host,
const char *  clientKey,
const char *  uid,
const char *  serverType,
char *  endpoint,
size_t  endpointBuf,
struct AuthInfo auth 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckContentType()

bool CheckContentType ( Diarkis::StdString  headerValue,
std::initializer_list< Diarkis::StdString expected 
)
Here is the caller graph for this function:

◆ TryParse() [1/2]

Diarkis::System::Result TryParse ( std::shared_ptr< IDiarkisLogger logger,
const Diarkis::StdString response,
const Diarkis::StdString serverType,
Diarkis::StdString endpoint,
Diarkis::StdVector< uint8_t > &  sid,
Diarkis::StdVector< uint8_t > &  key,
Diarkis::StdVector< uint8_t > &  iv,
Diarkis::StdVector< uint8_t > &  mackey 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TryParse() [2/2]

Diarkis::System::Result TryParse ( std::shared_ptr< IDiarkisLogger logger,
const char *  response,
const char *  serverType,
char *  endpoint,
size_t  endpointBuf,
struct AuthInfo auth 
)
Here is the call graph for this function: