1
0
mirror of synced 2025-04-23 09:45:32 +03:00

Update README

This commit is contained in:
yhirose 2020-07-25 11:24:06 -04:00
parent 0e9cfd9f49
commit 29a06f852a

View File

@ -243,9 +243,7 @@ svr.set_payload_max_length(1024 * 1024 * 512); // 512MB
### Server-Sent Events ### Server-Sent Events
[Server example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssesvr.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).
[Client example](https://github.com/yhirose/cpp-httplib/blob/master/example/ssecli.cc)
### Default thread pool support ### Default thread pool support
@ -390,6 +388,7 @@ auto res = cli.Get("/large-data",
```cpp ```cpp
std::string body; std::string body;
auto res = cli.Get( auto res = cli.Get(
"/stream", Headers(), "/stream", Headers(),
[&](const Response &response) { [&](const Response &response) {
@ -406,6 +405,7 @@ auto res = cli.Get(
```cpp ```cpp
std::string body = ...; std::string body = ...;
auto res = cli_.Post( auto res = cli_.Post(
"/stream", body.size(), "/stream", body.size(),
[](size_t offset, size_t length, DataSink &sink) { [](size_t offset, size_t length, DataSink &sink) {