diff options
author | Jack Lloyd <[email protected]> | 2017-12-16 13:00:09 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-17 14:59:15 -0500 |
commit | 42ce76c89ce7858bb132a414284a27e6362f9558 (patch) | |
tree | 139cb02abce1b5dd5311b7b0a4225e45d883026b /src/lib/utils/http_util/http_util.h | |
parent | d358e9e12190c08c946c0f87dbedc55229ce11a6 (diff) |
Add timeouts to Asio sockets
Diffstat (limited to 'src/lib/utils/http_util/http_util.h')
-rw-r--r-- | src/lib/utils/http_util/http_util.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/utils/http_util/http_util.h b/src/lib/utils/http_util/http_util.h index ea6122c07..14f168886 100644 --- a/src/lib/utils/http_util/http_util.h +++ b/src/lib/utils/http_util/http_util.h @@ -69,25 +69,25 @@ BOTAN_PUBLIC_API(2,0) std::ostream& operator<<(std::ostream& o, const Response& typedef std::function<std::string (const std::string&, const std::string&)> http_exch_fn; BOTAN_PUBLIC_API(2,0) Response http_sync(http_exch_fn fn, - const std::string& verb, - const std::string& url, - const std::string& content_type, - const std::vector<uint8_t>& body, - size_t allowable_redirects); + const std::string& verb, + const std::string& url, + const std::string& content_type, + const std::vector<uint8_t>& body, + size_t allowable_redirects); BOTAN_PUBLIC_API(2,0) 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); + const std::string& url, + const std::string& content_type, + const std::vector<uint8_t>& body, + size_t allowable_redirects); BOTAN_PUBLIC_API(2,0) Response GET_sync(const std::string& url, - size_t allowable_redirects = 1); + size_t allowable_redirects = 1); BOTAN_PUBLIC_API(2,0) Response POST_sync(const std::string& url, - const std::string& content_type, - const std::vector<uint8_t>& body, - size_t allowable_redirects = 1); + const std::string& content_type, + const std::vector<uint8_t>& body, + size_t allowable_redirects = 1); BOTAN_PUBLIC_API(2,0) std::string url_encode(const std::string& url); |