Skip to content

Instantly share code, notes, and snippets.

@madmongo1
Last active January 27, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madmongo1/b194fe8a1c4a183f19b4e1045dbd851c to your computer and use it in GitHub Desktop.
Save madmongo1/b194fe8a1c4a183f19b4e1045dbd851c to your computer and use it in GitHub Desktop.
auto stream = http::request_stream();
co_await stream.async_connect(url, http::get);
auto&& header = stream.header();
std::string store;
auto bytes =
co_await net::async_read(stream, net::dynamic_buffer(store));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment