http2session.socket
-
类型:<net.Socket> | <tls.TLSSocket>
¥Type: <net.Socket> | <tls.TLSSocket>
返回 Proxy 对象,它充当 net.Socket(或 tls.TLSSocket),但将可用方法限制为可安全使用 HTTP/2 的方法。
¥Returns a Proxy object that acts as a net.Socket (or tls.TLSSocket) but
limits available methods to ones safe to use with HTTP/2.
destroy、emit、end、pause、read、resume、以及 write 将抛出错误代码为 ERR_HTTP2_NO_SOCKET_MANIPULATION。有关详细信息,请参阅 Http2Session 和套接字。
¥destroy, emit, end, pause, read, resume, and write will throw
an error with code ERR_HTTP2_NO_SOCKET_MANIPULATION. See
Http2Session and Sockets for more information.
将在此 Http2Session 上调用 setTimeout 方法。
¥setTimeout method will be called on this Http2Session.
所有其他交互将直接路由到套接字。
¥All other interactions will be routed directly to the socket.