PHP Класс Phue\Transport\Adapter\Curl

Наследование: implements Phue\Transport\Adapter\AdapterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$curl resource cURL resource

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructs a cURL adapter
public __construct ( )

close() публичный Метод

Closes the cURL connection
public close ( )

getContentType() публичный Метод

Get response content type
public getContentType ( ) : string
Результат string Response content type

getHttpStatusCode() публичный Метод

Get response http status code
public getHttpStatusCode ( ) : string
Результат string Response http code

open() публичный Метод

Opens the connection
public open ( )

send() публичный Метод

Sends request
public send ( string $address, string $method, string $body = null ) : string
$address string Request path
$method string Request method
$body string Body data
Результат string Result

Описание свойств

$curl защищенное свойство

cURL resource
protected resource $curl
Результат resource