|
Botan
2.13.0
Crypto and TLS for C++11
|
Classes | |
| class | HTTP_Error |
| class | 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, std::chrono::milliseconds timeout) |
| 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::chrono::milliseconds timeout) |
| 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::chrono::milliseconds timeout) |
| 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 75 of file http_util.h.
| Response Botan::HTTP::GET_sync | ( | const std::string & | url, |
| size_t | allowable_redirects, | ||
| std::chrono::milliseconds | timeout | ||
| ) |
Definition at line 236 of file http_util.cpp.
References http_sync().
Referenced by http_sync().
| 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 104 of file http_util.cpp.
References Botan::cast_uint8_ptr_to_char(), GET_sync(), Botan::search_map(), Botan::ASN1::to_string(), and Botan::to_u32bit().
Referenced by GET_sync(), http_sync(), and POST_sync().
| 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, | ||
| std::chrono::milliseconds | timeout | ||
| ) |
Definition at line 214 of file http_util.cpp.
References http_sync().
| std::ostream & Botan::HTTP::operator<< | ( | std::ostream & | o, |
| const Response & | resp | ||
| ) |
Definition at line 94 of file http_util.cpp.
References Botan::HTTP::Response::body(), Botan::cast_uint8_ptr_to_char(), Botan::HTTP::Response::headers(), Botan::HTTP::Response::status_code(), Botan::HTTP::Response::status_message(), and Botan::ASN1::to_string().
| Response Botan::HTTP::POST_sync | ( | const std::string & | url, |
| const std::string & | content_type, | ||
| const std::vector< uint8_t > & | body, | ||
| size_t | allowable_redirects, | ||
| std::chrono::milliseconds | timeout | ||
| ) |
Definition at line 243 of file http_util.cpp.
References http_sync().
| std::string Botan::HTTP::url_encode | ( | const std::string & | in | ) |
Definition at line 73 of file http_util.cpp.
References Botan::cast_char_ptr_to_uint8(), and Botan::hex_encode().
1.8.9.1