Project Alice
|
Namespaces | |
namespace | detail |
Classes | |
class | Client |
class | ClientImpl |
class | ContentReader |
class | DataSink |
struct | MultipartFormData |
struct | MultipartFormDataProvider |
struct | Request |
struct | Response |
class | Result |
class | Server |
class | Stream |
class | TaskQueue |
class | ThreadPool |
Typedefs | |
using | Headers = std::unordered_multimap< std::string, std::string, detail::case_ignore::hash, detail::case_ignore::equal_to > |
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 | ContentProviderResourceReleaser = std::function< void(bool success)> |
using | MultipartFormDataProviderItems = std::vector< MultipartFormDataProvider > |
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)> |
Functions | |
void | default_socket_options (socket_t sock) |
const char * | status_message (int status) |
std::string | get_bearer_token_auth (const Request &req) |
std::string | to_string (Error error) |
std::ostream & | operator<< (std::ostream &os, const Error &obj) |
std::string | hosted_at (const std::string &hostname) |
void | hosted_at (const std::string &hostname, std::vector< std::string > &addrs) |
std::string | append_query_params (const std::string &path, const Params ¶ms) |
std::pair< std::string, std::string > | make_range_header (const Ranges &ranges) |
std::pair< std::string, std::string > | make_basic_authentication_header (const std::string &username, const std::string &password, bool is_proxy=false) |
std::pair< std::string, std::string > | make_bearer_token_authentication_header (const std::string &token, bool is_proxy=false) |
using httplib::ContentProvider = typedef std::function<bool(size_t offset, size_t length, DataSink &sink)> |
using httplib::ContentProviderResourceReleaser = typedef std::function<void(bool success)> |
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::unordered_multimap<std::string, std::string, detail::case_ignore::hash, detail::case_ignore::equal_to> |
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::MultipartFormDataProviderItems = typedef std::vector<MultipartFormDataProvider> |
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 |
enum httplib::StatusCode |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |