mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-06-02 09:37:38 +00:00
Fix #139. Content receiver support
This commit is contained in:
parent
31cdadc4b1
commit
6f663028e9
3 changed files with 204 additions and 32 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue