mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fix readme Response::set_chunked_content_provider (#811)
`Response::set_chunked_content_provider` has formal parameters, not one.
This commit is contained in:
parent
96afa7e108
commit
7299713195
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ svr.Get("/stream", [&](const Request &req, Response &res) {
|
|||
```cpp
|
||||
svr.Get("/chunked", [&](const Request& req, Response& res) {
|
||||
res.set_chunked_content_provider(
|
||||
"text/plain",
|
||||
[](size_t offset, DataSink &sink) {
|
||||
sink.write("123", 3);
|
||||
sink.write("345", 3);
|
||||
|
|
Loading…
Reference in a new issue