We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a99e02a + 760bccc commit 5edf455Copy full SHA for 5edf455
README.md
@@ -77,12 +77,13 @@ svr.set_error_handler([](const auto& req, auto& res) {
77
```cpp
78
svr.Post("/multipart", [&](const auto& req, auto& res) {
79
auto size = req.files.size();
80
- auto ret = req.has_file("name1"));
+ auto ret = req.has_file("name1");
81
const auto& file = req.get_file_value("name1");
82
// file.filename;
83
// file.content_type;
84
- auto body = req.body.substr(file.offset, file.length));
85
-})
+ auto body = req.body.substr(file.offset, file.length);
+});
86
+
87
```
88
89
### Stream content with Content provider
0 commit comments