Result Class Reference

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

Public Member Functions

Error error () const
 
std::string get_request_header_value (const std::string &key, const char *def="", size_t id=0) const
 
size_t get_request_header_value_count (const std::string &key) const
 
uint64_t get_request_header_value_u64 (const std::string &key, uint64_t def=0, size_t id=0) const
 
bool has_request_header (const std::string &key) const
 
 operator bool () const
 
bool operator!= (std::nullptr_t) const
 
Responseoperator* ()
 
const Responseoperator* () const
 
Responseoperator-> ()
 
const Responseoperator-> () const
 
bool operator== (std::nullptr_t) const
 
 Result ()=default
 
 Result (std::unique_ptr< Response > &&res, Error err, Headers &&request_headers=Headers{})
 
Responsevalue ()
 
const Responsevalue () const
 

Detailed Description

Definition at line 1157 of file httplib.h.

Constructor & Destructor Documentation

◆ Result() [1/2]

Result ( )
default

◆ Result() [2/2]

Result ( std::unique_ptr< Response > &&  res,
Error  err,
Headers &&  request_headers = Headers{} 
)
inline

Definition at line 1160 of file httplib.h.

Member Function Documentation

◆ error()

Error error ( ) const
inline

Definition at line 1176 of file httplib.h.

◆ get_request_header_value()

std::string get_request_header_value ( const std::string &  key,
const char *  def = "",
size_t  id = 0 
) const
inline

Definition at line 5841 of file httplib.h.

+ Here is the call graph for this function:

◆ get_request_header_value_count()

size_t get_request_header_value_count ( const std::string &  key) const
inline

Definition at line 5848 of file httplib.h.

+ Here is the call graph for this function:

◆ get_request_header_value_u64()

uint64_t get_request_header_value_u64 ( const std::string &  key,
uint64_t  def = 0,
size_t  id = 0 
) const
inline

Definition at line 2198 of file httplib.h.

+ Here is the call graph for this function:

◆ has_request_header()

bool has_request_header ( const std::string &  key) const
inline

Definition at line 5837 of file httplib.h.

◆ operator bool()

operator bool ( ) const
inline

Definition at line 1165 of file httplib.h.

◆ operator!=()

bool operator!= ( std::nullptr_t  ) const
inline

Definition at line 1167 of file httplib.h.

◆ operator*() [1/2]

Response& operator* ( )
inline

Definition at line 1171 of file httplib.h.

◆ operator*() [2/2]

const Response& operator* ( ) const
inline

Definition at line 1170 of file httplib.h.

◆ operator->() [1/2]

Response* operator-> ( )
inline

Definition at line 1173 of file httplib.h.

◆ operator->() [2/2]

const Response* operator-> ( ) const
inline

Definition at line 1172 of file httplib.h.

◆ operator==()

bool operator== ( std::nullptr_t  ) const
inline

Definition at line 1166 of file httplib.h.

◆ value() [1/2]

Response& value ( )
inline

Definition at line 1169 of file httplib.h.

◆ value() [2/2]

const Response& value ( ) const
inline

Definition at line 1168 of file httplib.h.


The documentation for this class was generated from the following file: