PHP Class phprs\util\Curl

Exibir arquivo Open project: caoym/phprs-restful

Public Properties

Property Type Description
$timeout integer request time out in second

Public Methods

Method Description
GET ( $url, $headers = null, $followLoc = true )
POST ( $url, $content, $headers = null, $followLoc = true )
PUT ( $url, $content, $headers = null, $followLoc = true )
__construct ( )
__destruct ( )
reset ( )

Private Methods

Method Description
execCurl ( $url, string $method = 'GET', null $content = null, null $headers = null, boolean $followLoc = true ) : CurlResponse

Method Details

GET() public method

public GET ( $url, $headers = null, $followLoc = true )

POST() public method

public POST ( $url, $content, $headers = null, $followLoc = true )

PUT() public method

public PUT ( $url, $content, $headers = null, $followLoc = true )

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

reset() public method

public reset ( )

Property Details

$timeout public_oe property

request time out in second
public int $timeout
return integer