Instrument Neutral Distributed Interface INDI 2.2.5
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
Result & operator= (Result &&other) noexcept
 Result (const Result &)=delete
Result & operator= (const Result &)=delete
bool is_valid () const
 operator bool () const
int status () const
const Headers & headers () 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 ()

Detailed Description

Definition at line 3091 of file httplib.h.

Constructor & Destructor Documentation

◆ Result() [1/4]

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

Definition at line 3094 of file httplib.h.

◆ Result() [2/4]

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

Definition at line 3096 of file httplib.h.

◆ Result() [3/4]

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

Definition at line 3099 of file httplib.h.

◆ Result() [4/4]

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

Member Function Documentation

◆ data()

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

Definition at line 3203 of file httplib.h.

◆ error()

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

Definition at line 3162 of file httplib.h.

◆ get_header_value()

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

Definition at line 3149 of file httplib.h.

◆ has_header()

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

Definition at line 3156 of file httplib.h.

◆ has_read_error()

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

Definition at line 3170 of file httplib.h.

◆ headers()

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

Definition at line 3143 of file httplib.h.

◆ is_valid()

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

Definition at line 3127 of file httplib.h.

◆ next()

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

Definition at line 3178 of file httplib.h.

◆ operator bool()

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

Definition at line 3131 of file httplib.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 3108 of file httplib.h.

◆ read_all()

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

Definition at line 3215 of file httplib.h.

◆ read_error()

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

Definition at line 3166 of file httplib.h.

◆ size()

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

Definition at line 3209 of file httplib.h.

◆ status()

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

Definition at line 3137 of file httplib.h.


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