Goby3  3.1.5
2024.05.14
httplib::Result Class Reference

#include <goby/util/thirdparty/cpp-httplib/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, size_t id=0) const
 
uint64_t get_request_header_value_u64 (const std::string &key, size_t id=0) const
 
size_t get_request_header_value_count (const std::string &key) const
 

Detailed Description

Definition at line 981 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 985 of file httplib.h.

Member Function Documentation

◆ error()

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

Definition at line 1001 of file httplib.h.

◆ get_request_header_value()

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

Definition at line 5922 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 5927 of file httplib.h.

◆ get_request_header_value_u64()

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

Definition at line 1865 of file httplib.h.

◆ has_request_header()

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

Definition at line 5917 of file httplib.h.

◆ operator bool()

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

Definition at line 990 of file httplib.h.

◆ operator!=()

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

Definition at line 992 of file httplib.h.

◆ operator*() [1/2]

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

Definition at line 996 of file httplib.h.

◆ operator*() [2/2]

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

Definition at line 995 of file httplib.h.

◆ operator->() [1/2]

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

Definition at line 998 of file httplib.h.

◆ operator->() [2/2]

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

Definition at line 997 of file httplib.h.

◆ operator==()

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

Definition at line 991 of file httplib.h.

◆ value() [1/2]

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

Definition at line 994 of file httplib.h.

◆ value() [2/2]

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

Definition at line 993 of file httplib.h.


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