超时设置超时设置<?php$http = HttpRequest::newSession();$response = $http->timeout(3000, 1000) // 总时间不得超过3秒,连接时间不得超过1秒 ->get('https://www.baidu.com/');$content = $response->body(); // 网页源码