Botan
2.1.0
Crypto and TLS for C++11
|
Classes | |
struct | HTTP_Error |
struct | Response |
Typedefs | |
typedef std::function< std::string(const std::string &, const std::string &)> | http_exch_fn |
Functions | |
Response | GET_sync (const std::string &url, size_t allowable_redirects) |
Response | http_sync (http_exch_fn http_transact, const std::string &verb, const std::string &url, const std::string &content_type, const std::vector< uint8_t > &body, size_t allowable_redirects) |
Response | http_sync (const std::string &verb, const std::string &url, const std::string &content_type, const std::vector< uint8_t > &body, size_t allowable_redirects) |
std::ostream & | operator<< (std::ostream &o, const Response &resp) |
Response | POST_sync (const std::string &url, const std::string &content_type, const std::vector< uint8_t > &body, size_t allowable_redirects) |
std::string | url_encode (const std::string &in) |
typedef std::function<std::string (const std::string&, const std::string&)> Botan::HTTP::http_exch_fn |
Definition at line 68 of file http_util.h.
BOTAN_DLL Response Botan::HTTP::GET_sync | ( | const std::string & | url, |
size_t | allowable_redirects | ||
) |
Definition at line 289 of file http_util.cpp.
References http_sync().
Referenced by http_sync().
BOTAN_DLL Response Botan::HTTP::http_sync | ( | http_exch_fn | http_transact, |
const std::string & | verb, | ||
const std::string & | url, | ||
const std::string & | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects | ||
) |
Definition at line 165 of file http_util.cpp.
References GET_sync(), Botan::search_map(), Botan::ASN1::to_string(), and Botan::to_u32bit().
Referenced by GET_sync(), http_sync(), and POST_sync().
BOTAN_DLL Response Botan::HTTP::http_sync | ( | const std::string & | verb, |
const std::string & | url, | ||
const std::string & | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects | ||
) |
Definition at line 274 of file http_util.cpp.
References http_sync().
BOTAN_DLL std::ostream & Botan::HTTP::operator<< | ( | std::ostream & | o, |
const Response & | resp | ||
) |
Definition at line 155 of file http_util.cpp.
References Botan::HTTP::Response::body(), Botan::HTTP::Response::headers(), Botan::HTTP::Response::status_code(), Botan::HTTP::Response::status_message(), and Botan::ASN1::to_string().
BOTAN_DLL Response Botan::HTTP::POST_sync | ( | const std::string & | url, |
const std::string & | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects | ||
) |
Definition at line 294 of file http_util.cpp.
References http_sync().
BOTAN_DLL std::string Botan::HTTP::url_encode | ( | const std::string & | in | ) |
Definition at line 134 of file http_util.cpp.