D++ (DPP)
C++ Discord API Bot Library
|
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) |
using httplib::ContentProvider = typedef std::function<bool(size_t offset, size_t length, DataSink &sink)> |
using httplib::ContentProviderWithoutLength = typedef std::function<bool(size_t offset, DataSink &sink)> |
using httplib::ContentReceiver = typedef std::function<bool(const char *data, size_t data_length)> |
using httplib::ContentReceiverWithProgress = typedef std::function<bool(const char *data, size_t data_length, uint64_t offset, uint64_t total_length)> |
using httplib::Headers = typedef std::multimap<std::string, std::string, detail::ci> |
using httplib::Logger = typedef std::function<void(const Request &, const Response &)> |
using httplib::Match = typedef std::smatch |
using httplib::MultipartContentHeader = typedef std::function<bool(const MultipartFormData &file)> |
using httplib::MultipartFormDataItems = typedef std::vector<MultipartFormData> |
using httplib::MultipartFormDataMap = typedef std::multimap<std::string, MultipartFormData> |
using httplib::Params = typedef std::multimap<std::string, std::string> |
using httplib::Progress = typedef std::function<bool(uint64_t current, uint64_t total)> |
using httplib::Range = typedef std::pair<ssize_t, ssize_t> |
using httplib::Ranges = typedef std::vector<Range> |
using httplib::ResponseHandler = typedef std::function<bool(const Response &response)> |
using httplib::SocketOptions = typedef std::function<void(socket_t sock)> |
|
strong |
|
inline |
|
inline |