camcom 1.0.3
 
Loading...
Searching...
No Matches
httplib::stream::Result Class Reference

#include <httplib.h>

Public Member Functions

 Result ()
 
 Result (ClientImpl::StreamHandle &&handle, size_t chunk_size=8192)
 
 Result (Result &&other) noexcept
 
Resultoperator= (Result &&other) noexcept
 
 Result (const Result &)=delete
 
Resultoperator= (const Result &)=delete
 
bool is_valid () const
 
 operator bool () const
 
int status () const
 
const Headersheaders () const
 
std::string get_header_value (const std::string &key, const char *def="") const
 
bool has_header (const std::string &key) const
 
Error error () const
 
Error read_error () const
 
bool has_read_error () const
 
bool next ()
 
const char * data () const
 
size_t size () const
 
std::string read_all ()
 

Constructor & Destructor Documentation

◆ Result() [1/4]

httplib::stream::Result::Result ( )
inline

◆ Result() [2/4]

httplib::stream::Result::Result ( ClientImpl::StreamHandle && handle,
size_t chunk_size = 8192 )
inlineexplicit

◆ Result() [3/4]

httplib::stream::Result::Result ( Result && other)
inlinenoexcept

◆ Result() [4/4]

httplib::stream::Result::Result ( const Result & )
delete

Member Function Documentation

◆ data()

const char * httplib::stream::Result::data ( ) const
inline

◆ error()

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

◆ get_header_value()

std::string httplib::stream::Result::get_header_value ( const std::string & key,
const char * def = "" ) const
inline

◆ has_header()

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

◆ has_read_error()

bool httplib::stream::Result::has_read_error ( ) const
inline

◆ headers()

const Headers & httplib::stream::Result::headers ( ) const
inline

◆ is_valid()

bool httplib::stream::Result::is_valid ( ) const
inline

◆ next()

bool httplib::stream::Result::next ( )
inline

◆ operator bool()

httplib::stream::Result::operator bool ( ) const
inlineexplicit

◆ operator=() [1/2]

Result & httplib::stream::Result::operator= ( const Result & )
delete

◆ operator=() [2/2]

Result & httplib::stream::Result::operator= ( Result && other)
inlinenoexcept

◆ read_all()

std::string httplib::stream::Result::read_all ( )
inline

◆ read_error()

Error httplib::stream::Result::read_error ( ) const
inline

◆ size()

size_t httplib::stream::Result::size ( ) const
inline

◆ status()

int httplib::stream::Result::status ( ) const
inline

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