From dfec2de5b57c16b6c446d4cd0962b37e3c1e5fba Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 3 Aug 2020 23:37:05 -0400 Subject: [PATCH] Update README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 54cebce..b823da4 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,13 @@ httplib::Headers headers = { }; auto res = cli.Get("/hi", headers); ``` +or +```c++ +cli.set_default_headers({ + { "Accept-Encoding", "gzip, deflate" } +}); +auto res = cli.Get("/hi"); +``` ### POST