Fix readme Response::set_chunked_content_provider (#811)

`Response::set_chunked_content_provider` has formal parameters, not one.
This commit is contained in:
Anonymous 2020-12-25 16:55:57 -08:00 committed by GitHub
parent 96afa7e108
commit 7299713195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);