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

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

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

Свойство Тип Описание
$fileStream resource File stream
$streamContext resource Stream context

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

Метод Описание
close ( ) Closes the streaming connection
getContentType ( ) : string Get response content type
getHeaders ( ) : string Get headers
getHttpStatusCode ( ) : string Get response http status code
open ( ) Opens the connection
send ( string $address, string $method, string $body = null ) : string Sends request

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

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

Closes the streaming connection
public close ( )

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

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

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

Get headers
public getHeaders ( ) : string
Результат string Headers

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

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

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

File stream
protected resource $fileStream
Результат resource

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

Stream context
protected resource $streamContext
Результат resource