连接到目标服务器。此方法没有任何参数。发起connect后,底层会自动进行协程调度,当连接成功或失败时connect会返回。连接建立后可以调用send方法向服务器发送请求。
connect
send
function Coroutine\Http2\Client->connect();
true
false
errCode