Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
We presume this means a facility to match expressions against the URI in HTTP requests, and dispatch them to calling code. The authors feel that this is a responsibility of higher level code. Beast does not try to offer a web server. That said, the server-framework example has a concept of request routing called a Service. Two services are provided, one for serving files and the other for handling WebSocket upgrade requests.我们理解这指的是一个用于将表达式与 HTTP 请求中的 URI 进行匹配,并将其分派给调用代码的机制。作者认为这是更高层代码的职责。Beast 并不试图提供一个 Web 服务器。话虽如此,server-framework 示例中提供了一个名为 Service 的请求路由概念。该示例提供了两种服务,一种用于提供文件服务,另一种用于处理 WebSocket 升级请求。