From 29a06f852ab45533e3f05a6bdb8860dfd4f65090 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 25 Jul 2020 11:24:06 -0400 Subject: [PATCH] Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 70360cc..aab3c07 100644 --- a/README.md +++ b/README.md @@ -243,9 +243,7 @@ svr.set_payload_max_length(1024 * 1024 * 512); // 512MB ### Server-Sent Events -[Server example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssesvr.cc) - -[Client example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssecli.cc) +Please see [Server example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssesvr.cc) and [Client example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssecli.cc). ### Default thread pool support @@ -390,6 +388,7 @@ auto res = cli.Get("/large-data", ```cpp std::string body; + auto res = cli.Get( "/stream", Headers(), [&](const Response &response) { @@ -406,6 +405,7 @@ auto res = cli.Get( ```cpp std::string body = ...; + auto res = cli_.Post( "/stream", body.size(), [](size_t offset, size_t length, DataSink &sink) {