CONNECT_TIMEOUT
CONNECT_TIMEOUT = 5
Request Connect Timeout
RESTful ROA Request.
$uri : \GuzzleHttp\Psr7\Uri
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
__construct(array $options = array())
Request constructor.
| array | $options |
| None found |
appendUserAgent(string $name, string $value) : $this
| string | $name | |
| string | $value |
| None found |
| None found |
format(string $format) : $this
Set Accept format.
| string | $format |
| None found |
contentType( $contentType) : $this
| $contentType |
| None found |
accept(string $accept) : $this
| string | $accept |
| None found |
body(string $body) : $this
Set the request body.
| string | $body |
| None found |
jsonBody(array|object $content) : $this
Set the json as body.
| array|object | $content |
| None found |
scheme(string $scheme) : $this
Set the request scheme.
| string | $scheme |
| None found |
host(string $host) : $this
Set the request host.
| string | $host |
| None found |
method(string $method) : $this
| string | $method |
| None found |
client(string $clientName) : $this
| string | $clientName |
| None found |
| None found |
resolveOption()
| None found |
request() : \AlibabaCloud\Client\Result\Result
| None found |
| None found |
createClient(\AlibabaCloud\Client\Request\Request $request = null) : \GuzzleHttp\Client
| \AlibabaCloud\Client\Request\Request | $request |
| None found |
setContent( $content) : $this
| $content |
| codeCoverageIgnore |
|---|
setMethod( $method) : $this
| $method |
| codeCoverageIgnore |
|---|
setProtocol( $scheme) : $this
| $scheme |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
setProtocolType( $scheme) : $this
| $scheme |
| codeCoverageIgnore |
|---|
setActionName( $actionName) : $this
| $actionName |
| codeCoverageIgnore |
|---|
setAcceptFormat( $format) : $this
| $format |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
addHeader( $headerKey, $headerValue) : $this
| $headerKey | ||
| $headerValue |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
setQueryParameters( $name, $value) : $this
| $name | ||
| $value |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
putDomainParameters( $name, $value) : $this
| $name | ||
| $value |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
timeout(integer|float $seconds) : $this
| integer|float | $seconds |
| None found |
timeoutMilliseconds(integer $milliseconds) : $this
| integer | $milliseconds |
| None found |
connectTimeout(integer|float $seconds) : $this
| integer|float | $seconds |
| None found |
connectTimeoutMilliseconds(integer $milliseconds) : $this
| integer | $milliseconds |
| None found |
| None found |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
| None found |
| None found |
regionId(string $regionId) : $this
| string | $regionId |
| None found |
| None found |
credential() : \AlibabaCloud\Client\Credentials\AccessKeyCredential|\AlibabaCloud\Client\Credentials\BearerTokenCredential|\AlibabaCloud\Client\Credentials\CredentialsInterface|\AlibabaCloud\Client\Credentials\StsCredential
Return credentials directly if it is an AssumeRole or GenerateSessionAccessKey.
| None found |
httpClient() : \AlibabaCloud\Client\Clients\Client
Get the client based on the request's settings.
| None found |
mergeOptionsIntoClient()
Merged with the client's options, the same name will be overwritten.
| None found |
action(string $action) : $this
| string | $action |
| None found |
endpointSuffix(string $endpointSuffix) : \AlibabaCloud\Client\Request\Traits\AcsTrait
| string | $endpointSuffix |
| codeCoverageIgnore |
|---|
| None found |
version(string $version) : $this
| string | $version |
| None found |
product(string $product) : $this
| string | $product |
| None found |
endpointType(string $endpointType) : $this
| string | $endpointType |
| None found |
serviceCode(string $serviceCode) : $this
| string | $serviceCode |
| None found |
resolveHost()
Resolve Host.
| None found |
realRegionId() : string
| None found |
offsetGet(string $offset) : mixed|null
This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
| string | $offset |
| None found |
offsetSet(string $offset, string|mixed $value)
| string | $offset | |
| string|mixed | $value |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
| None found |
retryByServer(integer $times, array $strings, array $statusCodes = array()) : $this
| integer | $times | |
| array | $strings | |
| array | $statusCodes |
| None found |
retryByClient(integer $times, array $strings, array $codes = array()) : $this
| integer | $times | |
| array | $strings | |
| array | $codes |
| None found |
resolveParameter()
Resolve request parameter.
| None found |
| None found |
pathParameter(string $name, string $value) : \AlibabaCloud\Client\Request\RoaRequest
Set path parameter by name.
| string | $name | |
| string | $value |
| None found |
pathPattern(string $pattern) : self
Set path pattern.
| string | $pattern |
| None found |
__call(string $name, mixed $arguments) : $this
Magic method for set or get request parameters.
| string | $name | |
| mixed | $arguments |
| None found |
| None found |
| None found |
| None found |
| None found |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
resolveHostWays(string $host, string $region_id)
| string | $host | |
| string | $region_id |
| None found |
hostResolver(string $host, string $region_id)
| string | $host | |
| string | $region_id |
| codeCoverageIgnore |
|---|
shouldServerRetry(\AlibabaCloud\Client\Result\Result $result) : boolean
| \AlibabaCloud\Client\Result\Result | $result |
| None found |
shouldClientRetry(\Exception $exception) : boolean
| \Exception | $exception |
| None found |
| None found |
| None found |
encodeBody(array $params)
Determine the body format based on the Content-Type and calculate the MD5 value.
| array | $params |
| None found |
resolveHeaders()
| None found |
resolveSignature()
| None found |
| None found |
resolveContentType()
If the Content-Type is not specified, it is determined according to accept.
| None found |
resolveSecurityToken()
| None found |
resolveBearerToken()
| None found |
signature() : string
Sign the request message.
| None found |
| None found |
| None found |