Project Alice
Loading...
Searching...
No Matches
httplib::Result Class Reference

#include <httplib.h>

Public Member Functions

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

Detailed Description

Definition at line 1164 of file httplib.h.

Constructor & Destructor Documentation

◆ Result() [1/2]

httplib::Result::Result ( )
default

◆ Result() [2/2]

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

Definition at line 1167 of file httplib.h.

Member Function Documentation

◆ error()

Error httplib::Result::error ( ) const
inline

Definition at line 1183 of file httplib.h.

◆ get_request_header_value()

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

Definition at line 5843 of file httplib.h.

◆ get_request_header_value_count()

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

Definition at line 5850 of file httplib.h.

◆ get_request_header_value_u64()

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

Definition at line 2205 of file httplib.h.

Here is the call graph for this function:

◆ has_request_header()

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

Definition at line 5839 of file httplib.h.

◆ operator bool()

httplib::Result::operator bool ( ) const
inline

Definition at line 1172 of file httplib.h.

◆ operator!=()

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

Definition at line 1174 of file httplib.h.

◆ operator*() [1/2]

Response & httplib::Result::operator* ( )
inline

Definition at line 1178 of file httplib.h.

◆ operator*() [2/2]

const Response & httplib::Result::operator* ( ) const
inline

Definition at line 1177 of file httplib.h.

◆ operator->() [1/2]

Response * httplib::Result::operator-> ( )
inline

Definition at line 1180 of file httplib.h.

◆ operator->() [2/2]

const Response * httplib::Result::operator-> ( ) const
inline

Definition at line 1179 of file httplib.h.

◆ operator==()

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

Definition at line 1173 of file httplib.h.

◆ value() [1/2]

Response & httplib::Result::value ( )
inline

Definition at line 1176 of file httplib.h.

◆ value() [2/2]

const Response & httplib::Result::value ( ) const
inline

Definition at line 1175 of file httplib.h.


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