Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit dfec2de

Browse files
authored
Update README
1 parent 04002d5 commit dfec2de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,13 @@ httplib::Headers headers = {
311311
};
312312
auto res = cli.Get("/hi", headers);
313313
```
314+
or
315+
```c++
316+
cli.set_default_headers({
317+
{ "Accept-Encoding", "gzip, deflate" }
318+
});
319+
auto res = cli.Get("/hi");
320+
```
314321

315322
### POST
316323

0 commit comments

Comments
 (0)