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