Swoole
PHP Manual

The Swoole\Http\Client class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

简介

类摘要

Swoole\Http\Client {
/* 属性 */
public $errCode ;
public $sock ;
/* 方法 */
public void addFile ( string $path , string $name [, string $type [, string $filename [, string $offset ]]] )
public void close ( void )
public void __destruct ( void )
public void download ( string $path , string $file , callable $callback [, integer $offset ] )
public void execute ( string $path , string $callback )
public void get ( string $path , callable $callback )
public boolean isConnected ( void )
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 void setCookies ( array $cookies )
public ReturnType setData ( string $data )
public void setHeaders ( array $headers )
public void setMethod ( string $method )
public void upgrade ( string $path , string $callback )
}

属性

errCode

sock

Table of Contents


Swoole
PHP Manual