Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
When implementing an HTTP server that also supports WebSocket, the server usually reads the HTTP request from the client. To detect when the incoming HTTP request is a WebSocket Upgrade request, the function当实现同时支持 WebSocket 的 HTTP 服务器时,服务器通常需要先读取客户端发来的 HTTP 请求。若要判断该请求是否为 WebSocket 升级请求,可以使用 [link beast.ref.boost__beast__websocket__is_upgrade `is_upgrade`]may be used.函数。