1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Updated README

This commit is contained in:
yhirose 2019-08-05 18:24:30 +09:00
parent e383b277a4
commit 1b95bf8cc3

View File

@ -190,9 +190,12 @@ int main(void)
```c++ ```c++
std::string body; 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()); assert(res->body.empty());
``` ```