30#include <asio/any_io_executor.hpp>
31#include <asio/awaitable.hpp>
38namespace neograph::async {
40class NEOGRAPH_API CurlH2Pool {
45 CurlH2Pool(
const CurlH2Pool&) =
delete;
46 CurlH2Pool& operator=(
const CurlH2Pool&) =
delete;
56 std::vector<std::pair<std::string, std::string>> headers = {},
57 RequestOptions opts = {});
61 std::unique_ptr<Impl> impl_;
NEOGRAPH_API export/import macro for shared-library builds.
Minimal async HTTP/1.1 POST client on asio coroutines.
NEOGRAPH_API asio::awaitable< HttpResponse > async_post(asio::any_io_executor ex, std::string_view host, std::string_view port, std::string_view path, std::string_view body, std::vector< std::pair< std::string, std::string > > headers={}, bool tls=false, RequestOptions opts={})
Async HTTP(S) POST.