Commit 89ea8f5a authored by tufengqi's avatar tufengqi

客户端新增guzzle

parent 87f42ce4
......@@ -219,6 +219,7 @@ class TGuzzleClient extends \Thrift\Transport\TTransport
],
'timeout' => number_format($this->timeout_ / 1000, 1) // s
];
$client = new GuzzleHttp\Client();
$promise = $client->sendAsync($request, $options)->then(function ($response) {
$this->response_ = $response->getBody();
echo 'I completed! ' . $this->response_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment