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