|
@@ -71,7 +71,7 @@ svr.set_error_handler([](const auto& req, auto& res) {
|
|
|
});
|
|
});
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-### `multipart/form-data` POST data
|
|
|
|
|
|
|
+### 'multipart/form-data' POST data
|
|
|
|
|
|
|
|
```cpp
|
|
```cpp
|
|
|
svr.post("/multipart", [&](const auto& req, auto& res) {
|
|
svr.post("/multipart", [&](const auto& req, auto& res) {
|
|
@@ -135,6 +135,10 @@ std::shared_ptr<httplib::Response> res =
|
|
|
);
|
|
);
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+This feature was contributed by [underscorediscovery](https://github.com/yhirose/cpp-httplib/pull/23).
|
|
|
|
|
+
|
|
|
### Range (HTTP/1.1)
|
|
### Range (HTTP/1.1)
|
|
|
|
|
|
|
|
```cpp
|
|
```cpp
|
|
@@ -148,10 +152,6 @@ auto res = cli.get("/range/32", headers);
|
|
|
// res->body should be "bcdefghijk".
|
|
// res->body should be "bcdefghijk".
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-This feature was contributed by [underscorediscovery](https://github.com/yhirose/cpp-httplib/pull/23).
|
|
|
|
|
-
|
|
|
|
|
OpenSSL Support
|
|
OpenSSL Support
|
|
|
---------------
|
|
---------------
|
|
|
|
|
|