Fix #139. Content receiver support

This commit is contained in:
yhirose 2019-07-17 21:33:47 -04:00
parent 31cdadc4b1
commit 6f663028e9
3 changed files with 204 additions and 32 deletions

View file

@ -114,6 +114,15 @@ int main(void)
}
```
### GET with Content Receiver
```c++
std::string body;
auto res = cli.Get("/large-data", [&](const char *data, size_t len) {
body.append(data, len);
});
```
### POST
```c++