Skip to content

Instantly share code, notes, and snippets.

@deanberris
Created September 25, 2012 11:58
Show Gist options
  • Save deanberris/3781341 to your computer and use it in GitHub Desktop.
Save deanberris/3781341 to your computer and use it in GitHub Desktop.
Configuration Type Pattern
namespace http = network::http;
http::client_options options;
options.follow_redirects(true)
.accept_encoding({"*/*"})
.version(http::version::http_1_1)
.proxy("localhost:8080")
.idle_timeout(30);
http::client client{options};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment