PHP 7.2.5 Released

The Swoole\Http\Client class

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

Introduction

Class synopsis

Swoole\Http\Client {
/* Properties */
public $errCode ;
public $sock ;
/* Methods */
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 )
}

Properties

errCode

sock

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top