MyGit

v20.18.0

uNetworking/uWebSockets

版本发布时间: 2022-09-26 08:15:18

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

Improved SNI support

This is a backwards compatible change that detaches the URL router from the App, and moves it underneath the SNI support (if any). The new hierarchy is: App -> (SNI) -> URL router.

SNI

One App can have the root level SSL certificate and its URL routes, and/or many per-domain SSL certificates and their own isolated URL routes.

You "browse" between different SNI domains by calling the new function app.domain(server name) before calling app.get or app.post or any such route registration call. This can be chained together in builder pattern. Last "browsed to" SNI is under where you register the URL route handler.

See example ServerName for usage.

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

查看:2022-09-26发行的版本