mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Updated README
This commit is contained in:
parent
e383b277a4
commit
1b95bf8cc3
1 changed files with 6 additions and 3 deletions
|
@ -190,9 +190,12 @@ int main(void)
|
|||
|
||||
```c++
|
||||
std::string body;
|
||||
auto res = cli.Get("/large-data", [&](const char *data, size_t len) {
|
||||
body.append(data, len);
|
||||
});
|
||||
|
||||
auto res = cli.Get("/large-data",
|
||||
[&](const char *data, uint64_t data_length, uint64_t offset, uint64_t content_length) {
|
||||
body.append(data, data_length);
|
||||
});
|
||||
|
||||
assert(res->body.empty());
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue