\AlibabaCloud\TeaTea

Class Tea.

Summary

Methods
Properties
Constants
config()
send()
sendAsync()
client()
request()
string()
requestAsync()
getHeaders()
getHeader()
allowRetry()
getBackoffTime()
sleep()
isRetryable()
merge()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
resolveConfig()
$config
N/A

Properties

$config

$config : array

Type

array

Methods

config()

config(array  $config) : mixed

Parameters

array $config

Returns

mixed —

send()

send(\AlibabaCloud\Tea\Request  $request, array  $config = []) : \AlibabaCloud\Tea\Response

Parameters

\AlibabaCloud\Tea\Request $request
array $config

Throws

\GuzzleHttp\Exception\GuzzleException

Returns

\AlibabaCloud\Tea\Response —

sendAsync()

sendAsync(\Psr\Http\Message\RequestInterface  $request, array  $config = []) : \GuzzleHttp\Promise\PromiseInterface

Parameters

\Psr\Http\Message\RequestInterface $request
array $config

Returns

\GuzzleHttp\Promise\PromiseInterface —

client()

client(array  $config = []) : \GuzzleHttp\Client

Parameters

array $config

Returns

\GuzzleHttp\Client —

request()

request(string  $method, string|\Psr\Http\Message\UriInterface  $uri, array  $options = []) : \Psr\Http\Message\ResponseInterface

Parameters

string $method
string|\Psr\Http\Message\UriInterface $uri
array $options

Throws

\GuzzleHttp\Exception\GuzzleException

Returns

\Psr\Http\Message\ResponseInterface —

string()

string(string  $method, string  $uri, array  $options = []) : string

Parameters

string $method
string $uri
array $options

Throws

\GuzzleHttp\Exception\GuzzleException

Returns

string —

requestAsync()

requestAsync(string  $method, string|\Psr\Http\Message\UriInterface  $uri, array  $options = []) : \GuzzleHttp\Promise\PromiseInterface

Parameters

string $method
string|\Psr\Http\Message\UriInterface $uri
array $options

Returns

\GuzzleHttp\Promise\PromiseInterface —

getHeaders()

getHeaders(string|\Psr\Http\Message\UriInterface  $uri, array  $options = []) : null|mixed

Parameters

string|\Psr\Http\Message\UriInterface $uri
array $options

Throws

\GuzzleHttp\Exception\GuzzleException

Returns

null|mixed —

getHeader()

getHeader(string|\Psr\Http\Message\UriInterface  $uri, string  $key, null|mixed  $default = null) : null|mixed

Parameters

string|\Psr\Http\Message\UriInterface $uri
string $key
null|mixed $default

Throws

\GuzzleHttp\Exception\GuzzleException

Returns

null|mixed —

allowRetry()

allowRetry(array  $runtime, int  $retryTimes, float  $now) : bool

Parameters

array $runtime
int $retryTimes
float $now

Returns

bool —

getBackoffTime()

getBackoffTime(array  $runtime, int  $retryTimes) : int

Parameters

array $runtime
int $retryTimes

Returns

int —

sleep()

sleep(mixed  $time) : mixed

Parameters

mixed $time

Returns

mixed —

isRetryable()

isRetryable(mixed  $retry, mixed  $retryTimes) : mixed

Parameters

mixed $retry
mixed $retryTimes

Returns

mixed —

merge()

merge(mixed|\AlibabaCloud\Tea\Model[]  ...$item) : mixed

Parameters

mixed|\AlibabaCloud\Tea\Model[] $item variadic

Returns

mixed —

resolveConfig()

resolveConfig(array  $config = []) : mixed

Parameters

array $config

Returns

mixed —