This commit is contained in:
2020-09-11 19:37:32 +08:00
parent 4d8eb95874
commit afc2eb2e0e
3 changed files with 139 additions and 3 deletions
+14
View File
@@ -11,6 +11,8 @@ namespace HttpServer\Client;
use Snowflake\Core\Help;
use Exception;
use Snowflake\Exception\ComponentException;
use Snowflake\Snowflake;
use Swoole\Coroutine;
use Swoole\Coroutine\Http\Client as SClient;
use Swoole\Coroutine\System;
@@ -18,6 +20,7 @@ use Swoole\Coroutine\System;
/**
* Class Client
* @package Snowflake\Snowflake\Http
* @property Http2 $http2
*/
class Client
{
@@ -110,6 +113,17 @@ class Client
{
}
/**
* @return Http2
* @throws ComponentException
*/
public function getHttp2()
{
return Snowflake::app()->get('http2');
}
/**
* @param $data
*/