Instrument Neutral Distributed Interface INDI 2.2.5
Public Member Functions | Public Attributes | List of all members
httplib::detail::BodyReader Struct Reference

#include <httplib.h>

Public Member Functions

ssize_t read (char *buf, size_t len)
 
bool has_error () const
 

Public Attributes

Stream * stream = nullptr
 
size_t content_length = 0
 
size_t bytes_read = 0
 
bool chunked = false
 
bool eof = false
 
std::unique_ptr< ChunkedDecoder > chunked_decoder
 
Error last_error = Error::Success
 

Detailed Description

Definition at line 1576 of file httplib.h.

Member Function Documentation

◆ has_error()

bool httplib::detail::BodyReader::has_error ( ) const
inline

Definition at line 1587 of file httplib.h.

◆ read()

ssize_t httplib::detail::BodyReader::read ( char *  buf,
size_t  len 
)
inline

Definition at line 10101 of file httplib.h.

Member Data Documentation

◆ bytes_read

size_t httplib::detail::BodyReader::bytes_read = 0

Definition at line 1580 of file httplib.h.

◆ chunked

bool httplib::detail::BodyReader::chunked = false

Definition at line 1581 of file httplib.h.

◆ chunked_decoder

std::unique_ptr<ChunkedDecoder> httplib::detail::BodyReader::chunked_decoder

Definition at line 1583 of file httplib.h.

◆ content_length

size_t httplib::detail::BodyReader::content_length = 0

Definition at line 1579 of file httplib.h.

◆ eof

bool httplib::detail::BodyReader::eof = false

Definition at line 1582 of file httplib.h.

◆ last_error

Error httplib::detail::BodyReader::last_error = Error::Success

Definition at line 1584 of file httplib.h.

◆ stream

Stream* httplib::detail::BodyReader::stream = nullptr

Definition at line 1578 of file httplib.h.


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