v20.55.0
版本发布时间: 2023-12-28 03:46:07
uNetworking/uWebSockets最新发布版本:v20.64.0(2024-07-04 03:06:24)
- Adds named parameter getters (as complement to integral offset getters) like so:
/* Define a parameter route */
.get("/:first/static/:second", [](auto *res, auto *req) {
/* Use the value of a parameter as response */
res->write("<h1>first is: ");
res->write(req->getParameter("first"));
res->write("</h1>");
res->write("<h1>second is: ");
res->write(req->getParameter("second"));
res->end("</h1>");
})
- Adds new example showing the above in use.