D++ (DPP)
C++ Discord API Bot Library
httplib Namespace Reference

Namespaces

namespace  detail
 

Classes

class  Client
 
class  ClientImpl
 
class  ContentReader
 
class  DataSink
 
struct  MultipartFormData
 
struct  Request
 
struct  Response
 
class  Result
 
class  Server
 
class  Stream
 
class  TaskQueue
 
class  ThreadPool
 

Typedefs

using Headers = std::multimap< std::string, std::string, detail::ci >
 
using Params = std::multimap< std::string, std::string >
 
using Match = std::smatch
 
using Progress = std::function< bool(uint64_t current, uint64_t total)>
 
using ResponseHandler = std::function< bool(const Response &response)>
 
using MultipartFormDataItems = std::vector< MultipartFormData >
 
using MultipartFormDataMap = std::multimap< std::string, MultipartFormData >
 
using ContentProvider = std::function< bool(size_t offset, size_t length, DataSink &sink)>
 
using ContentProviderWithoutLength = std::function< bool(size_t offset, DataSink &sink)>
 
using ContentReceiverWithProgress = std::function< bool(const char *data, size_t data_length, uint64_t offset, uint64_t total_length)>
 
using ContentReceiver = std::function< bool(const char *data, size_t data_length)>
 
using MultipartContentHeader = std::function< bool(const MultipartFormData &file)>
 
using Range = std::pair< ssize_t, ssize_t >
 
using Ranges = std::vector< Range >
 
using Logger = std::function< void(const Request &, const Response &)>
 
using SocketOptions = std::function< void(socket_t sock)>
 

Enumerations

enum class  Error {
  Success = 0 , Unknown , Connection , BindIPAddress ,
  Read , Write , ExceedRedirectCount , Canceled ,
  SSLConnection , SSLLoadingCerts , SSLServerVerification , UnsupportedMultipartBoundaryChars ,
  Compression
}
 

Functions

void default_socket_options (socket_t sock)
 
std::ostream & operator<< (std::ostream &os, const Error &obj)
 

Typedef Documentation

◆ ContentProvider

using httplib::ContentProvider = typedef std::function<bool(size_t offset, size_t length, DataSink &sink)>

◆ ContentProviderWithoutLength

using httplib::ContentProviderWithoutLength = typedef std::function<bool(size_t offset, DataSink &sink)>

◆ ContentReceiver

using httplib::ContentReceiver = typedef std::function<bool(const char *data, size_t data_length)>

◆ ContentReceiverWithProgress

using httplib::ContentReceiverWithProgress = typedef std::function<bool(const char *data, size_t data_length, uint64_t offset, uint64_t total_length)>

◆ Headers

using httplib::Headers = typedef std::multimap<std::string, std::string, detail::ci>

◆ Logger

using httplib::Logger = typedef std::function<void(const Request &, const Response &)>

◆ Match

using httplib::Match = typedef std::smatch

◆ MultipartContentHeader

using httplib::MultipartContentHeader = typedef std::function<bool(const MultipartFormData &file)>

◆ MultipartFormDataItems

using httplib::MultipartFormDataItems = typedef std::vector<MultipartFormData>

◆ MultipartFormDataMap

using httplib::MultipartFormDataMap = typedef std::multimap<std::string, MultipartFormData>

◆ Params

using httplib::Params = typedef std::multimap<std::string, std::string>

◆ Progress

using httplib::Progress = typedef std::function<bool(uint64_t current, uint64_t total)>

◆ Range

using httplib::Range = typedef std::pair<ssize_t, ssize_t>

◆ Ranges

using httplib::Ranges = typedef std::vector<Range>

◆ ResponseHandler

using httplib::ResponseHandler = typedef std::function<bool(const Response &response)>

◆ SocketOptions

using httplib::SocketOptions = typedef std::function<void(socket_t sock)>

Enumeration Type Documentation

◆ Error

enum class httplib::Error
strong
Enumerator
Success 
Unknown 
Connection 
BindIPAddress 
Read 
Write 
ExceedRedirectCount 
Canceled 
SSLConnection 
SSLLoadingCerts 
SSLServerVerification 
UnsupportedMultipartBoundaryChars 
Compression 

Function Documentation

◆ default_socket_options()

void httplib::default_socket_options ( socket_t  sock)
inline

◆ operator<<()

std::ostream & httplib::operator<< ( std::ostream &  os,
const Error obj 
)
inline
D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0