Botan 3.6.1
Crypto and TLS for C&
|
Classes | |
class | HTTP_Error |
class | Response |
Typedefs | |
typedef std::function< std::string(std::string_view, std::string_view, std::string_view)> | http_exch_fn |
Functions | |
Response | GET_sync (std::string_view url, size_t allowable_redirects, std::chrono::milliseconds timeout) |
Response | http_sync (const http_exch_fn &http_transact, std::string_view verb, std::string_view url, std::string_view content_type, const std::vector< uint8_t > &body, size_t allowable_redirects) |
Response | http_sync (std::string_view verb, std::string_view url, std::string_view 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 (std::string_view url, std::string_view content_type, const std::vector< uint8_t > &body, size_t allowable_redirects, std::chrono::milliseconds timeout) |
std::string | url_encode (std::string_view in) |
typedef std::function<std::string(std::string_view, std::string_view, std::string_view)> Botan::HTTP::http_exch_fn |
Definition at line 64 of file http_util.h.
Response BOTAN_TEST_API Botan::HTTP::GET_sync | ( | std::string_view | url, |
size_t | allowable_redirects, | ||
std::chrono::milliseconds | timeout ) |
Definition at line 242 of file http_util.cpp.
References http_sync().
Referenced by http_sync().
Response Botan::HTTP::http_sync | ( | const http_exch_fn & | http_transact, |
std::string_view | verb, | ||
std::string_view | url, | ||
std::string_view | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects ) |
Definition at line 112 of file http_util.cpp.
References Botan::cast_uint8_ptr_to_char(), Botan::fmt(), GET_sync(), and Botan::to_u32bit().
Referenced by GET_sync(), http_sync(), and POST_sync().
Response Botan::HTTP::http_sync | ( | std::string_view | verb, |
std::string_view | url, | ||
std::string_view | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects, | ||
std::chrono::milliseconds | timeout ) |
Definition at line 228 of file http_util.cpp.
References http_sync().
BOTAN_TEST_API std::ostream & Botan::HTTP::operator<< | ( | std::ostream & | o, |
const Response & | resp ) |
Definition at line 102 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(), and Botan::HTTP::Response::status_message().
Response Botan::HTTP::POST_sync | ( | std::string_view | url, |
std::string_view | content_type, | ||
const std::vector< uint8_t > & | body, | ||
size_t | allowable_redirects, | ||
std::chrono::milliseconds | timeout ) |
Definition at line 246 of file http_util.cpp.
References http_sync().
std::string Botan::HTTP::url_encode | ( | std::string_view | in | ) |
Definition at line 88 of file http_util.cpp.
References Botan::cast_char_ptr_to_uint8(), and Botan::hex_encode().