class Request

发起网络请求

Properties

static $debug

Methods

static void
setAppKey(string $app_key)

No description

static void
setAppId($app_id)

No description

static void
setRetry($retry)

No description

static void
setFormat(string $format)

No description

static void
setCurl(Curl $curl, int $timeout)

No description

static void
close()

No description

static array
exec(string $url, array $arg, bool $charSetUTF8 = true, bool $retry = false, bool $post = true)

逻辑处理.

static void
returnStr($str)

结果返回字符串则抛出错误.

Details

at line 30
static void setAppKey(string $app_key)

Parameters

string $app_key

Return Value

void

at line 35
static void setAppId($app_id)

Parameters

$app_id

Return Value

void

at line 40
static void setRetry($retry)

Parameters

$retry

Return Value

void

at line 48
static void setFormat(string $format)

Parameters

string $format

Return Value

void

at line 53
static void setCurl(Curl $curl, int $timeout)

Parameters

Curl $curl
int $timeout

Return Value

void

at line 60
static void close()

Return Value

void

at line 98
static array exec(string $url, array $arg, bool $charSetUTF8 = true, bool $retry = false, bool $post = true)

逻辑处理.

Parameters

string $url
array $arg
bool $charSetUTF8
bool $retry
bool $post

Return Value

array

Exceptions

TencentAIException

at line 203
static void returnStr($str)

结果返回字符串则抛出错误.

Parameters

$str

Return Value

void

Exceptions

TencentAIException