(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
类摘要
Swoole\Http\Client
{
public void addFile
(
string $path
,
string $name
[,
string $type
[,
string $filename
[,
string $offset
]]] )
public void close
(
void
)
public void download
(
string $path
,
string $file
,
callable $callback
[,
integer $offset
] )
public void execute
(
string $path
,
string $callback
)
public void on
(
string $event_name
,
callable $callback
)
public void post
(
string $path
,
string $data
,
callable $callback
)
public void push
(
string $data
[,
string $opcode
[,
string $finish
]] )
public void set
(
array $settings
)
public ReturnType setData
(
string $data
)
public void upgrade
(
string $path
,
string $callback
)
}