Skip to content

Commit

Permalink
Fix readme Response::set_chunked_content_provider (yhirose#811)
Browse files Browse the repository at this point in the history
`Response::set_chunked_content_provider` has formal parameters, not one.
  • Loading branch information
Anonymous authored Dec 26, 2020
1 parent 96afa7e commit 7299713
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7299713

Please sign in to comment.