Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
For programs which need to modify either the outgoing WebSocket HTTP Upgrade request, the outgoing WebSocket HTTP Upgrade response, or both, the stream supports an optional property called a ['decorator]. This is a function pointer or callable object which is invoked before the implementation sends an HTTP message. The decorator receives a modifiable reference to the message, allowing for modifications. The interface to this system uses:对于需要修改出站 WebSocket HTTP 升级请求或响应(或两者都需要)的程序,流支持一个可选属性,称为“修饰器”。修饰器是一个函数指针或可调用对象,在实现发送 HTTP 消息前会被调用。修饰器接收一个可修改的消息引用,允许对其进行修改。该系统的接口使用以下类型: