Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
When a client receives an HTTP Upgrade response from the server indicating a successful upgrade, the caller may wish to perform additional validation on the received HTTP response message. For example, to check that the response to a basic authentication challenge is valid. To achieve this, overloads of the handshake member function allow the caller to store the received HTTP message in an output reference argument of type当客户端收到服务器返回的表示升级成功的 HTTP Upgrade 响应时,调用方可能希望对收到的 HTTP 响应消息进行额外验证。例如,检查基本认证质询的响应是否有效。为此,handshake 成员函数的重载版本允许调用方将收到的 HTTP 消息存储到一个输出引用参数中,该参数类型为 [link beast.ref.boost__beast__websocket__response_type `response_type`]as follows:,用法如下: