PHP Class Phue\Transport\Adapter\Curl

Inheritance: implements Phue\Transport\Adapter\AdapterInterface
Datei anzeigen Open project: sqmk/phue

Protected Properties

Property Type Description
$curl resource cURL resource

Public Methods

Method Description
__construct ( ) Constructs a cURL adapter
close ( ) Closes the cURL connection
getContentType ( ) : string Get response content type
getHttpStatusCode ( ) : string Get response http status code
open ( ) Opens the connection
send ( string $address, string $method, string $body = null ) : string Sends request

Method Details

__construct() public method

Constructs a cURL adapter
public __construct ( )

close() public method

Closes the cURL connection
public close ( )

getContentType() public method

Get response content type
public getContentType ( ) : string
return string Response content type

getHttpStatusCode() public method

Get response http status code
public getHttpStatusCode ( ) : string
return string Response http code

open() public method

Opens the connection
public open ( )

send() public method

Sends request
public send ( string $address, string $method, string $body = null ) : string
$address string Request path
$method string Request method
$body string Body data
return string Result

Property Details

$curl protected_oe property

cURL resource
protected resource $curl
return resource