Namespaces | |
namespace | detail |
Classes | |
class | BufferStream |
class | Client |
struct | MultipartFile |
struct | MultipartFormData |
struct | Request |
struct | Response |
class | Server |
class | SocketStream |
class | Stream |
class | TaskQueue |
class | ThreadPool |
Typedefs | |
using | ContentProvider = std::function< void(size_t offset, size_t length, DataSink sink)> |
using | ContentProviderWithCloser = std::function< void(size_t offset, size_t length, DataSink sink, Done done)> |
using | ContentReader = std::function< bool(ContentReceiver receiver)> |
using | ContentReceiver = std::function< bool(const char *data, size_t data_length)> |
using | DataSink = std::function< void(const char *data, size_t data_len)> |
using | Done = std::function< void()> |
using | Headers = std::multimap< std::string, std::string, detail::ci > |
using | Match = std::smatch |
using | MultipartFiles = std::multimap< std::string, MultipartFile > |
using | MultipartFormDataItems = std::vector< MultipartFormData > |
using | Params = std::multimap< std::string, std::string > |
using | Progress = std::function< bool(uint64_t current, uint64_t total)> |
using | Range = std::pair< ssize_t, ssize_t > |
using | Ranges = std::vector< Range > |
using | ResponseHandler = std::function< bool(const Response &response)> |
Enumerations | |
enum class | HttpVersion { v1_0 = 0 , v1_1 } |
Functions | |
void | Get (std::vector< Request > &requests, const char *path) |
void | Get (std::vector< Request > &requests, const char *path, const Headers &headers) |
std::pair< std::string, std::string > | make_basic_authentication_header (const std::string &username, const std::string &password) |
std::pair< std::string, std::string > | make_range_header (Ranges ranges) |
void | Post (std::vector< Request > &requests, const char *path, const Headers &headers, const std::string &body, const char *content_type) |
void | Post (std::vector< Request > &requests, const char *path, const std::string &body, const char *content_type) |
using httplib::ContentProvider = typedef std::function<void(size_t offset, size_t length, DataSink sink)> |
using httplib::ContentProviderWithCloser = typedef std::function<void(size_t offset, size_t length, DataSink sink, Done done)> |
using httplib::ContentReader = typedef std::function<bool(ContentReceiver receiver)> |
using httplib::ContentReceiver = typedef std::function<bool(const char *data, size_t data_length)> |
using httplib::DataSink = typedef std::function<void(const char *data, size_t data_len)> |
using httplib::Done = typedef std::function<void()> |
using httplib::Headers = typedef std::multimap<std::string, std::string, detail::ci> |
using httplib::Match = typedef std::smatch |
using httplib::MultipartFiles = typedef std::multimap<std::string, MultipartFile> |
using httplib::MultipartFormDataItems = typedef std::vector<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)> |
|
strong |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |