mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Update README
This commit is contained in:
parent
04002d57bd
commit
dfec2de5b5
1 changed files with 7 additions and 0 deletions
|
@ -311,6 +311,13 @@ httplib::Headers headers = {
|
||||||
};
|
};
|
||||||
auto res = cli.Get("/hi", headers);
|
auto res = cli.Get("/hi", headers);
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```c++
|
||||||
|
cli.set_default_headers({
|
||||||
|
{ "Accept-Encoding", "gzip, deflate" }
|
||||||
|
});
|
||||||
|
auto res = cli.Get("/hi");
|
||||||
|
```
|
||||||
|
|
||||||
### POST
|
### POST
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue