MyGit

v20.22.0

uNetworking/uWebSockets

版本发布时间: 2022-10-06 12:08:28

uNetworking/uWebSockets最新发布版本:v20.64.0(2024-07-04 03:06:24)

Dynamically removable HTTP routes and SNI domains

Together with the SNI improvements from v20.18.0 you can now add/remove HTTP routes dynamically, both for the root ("catch all") domain, and for any specific SNI domain.

If you added a route with

app.get("/hello", [](auto *res, auto *req) {

});

You now remove it with app.get("/hello", nullptr);

The same applies to routes added under a SNI name - browsing to the domain with app.domain("server_name") you can then remove the route added.

Note that you cannot remove WebSocket routes just yet (but doing so could make sense semantically).

相关地址:原始地址 下载(tar) 下载(zip)

查看:2022-10-06发行的版本