PHP Класс Guzzle\Http\CachingEntityBody

Наследование: extends Guzzle\Http\AbstractEntityBodyDecorator
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$remoteStream Remote stream used to actually pull data onto the buffer
$skipReadBytes The number of bytes to skip reading due to a write on the temporary buffer

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

Метод Описание
__construct ( Guzzle\Http\EntityBodyInterface $body ) We will treat the buffer object as the body of the entity body {@inheritdoc}
__toString ( ) : string Will give the contents of the buffer followed by the exhausted remote stream.
close ( ) Close both the remote stream and buffer stream
getContentEncoding ( )
getContentType ( )
getCustomData ( $key ) Always retrieve custom data from the remote stream {@inheritdoc}
getMetaData ( $key = null )
getSize ( )
getStream ( )
getStreamType ( )
getUri ( )
getWrapper ( )
getWrapperData ( )
isConsumed ( )
read ( $length )
readLine ( $maxLength = null )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
setCustomData ( $key, $value ) Always set custom data on the remote stream {@inheritdoc}
setRewindFunction ( $callable ) Does not support custom rewind functions
setStream ( $stream, $size )
write ( $string )

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

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

We will treat the buffer object as the body of the entity body {@inheritdoc}
public __construct ( Guzzle\Http\EntityBodyInterface $body )
$body Guzzle\Http\EntityBodyInterface

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

Warning: Loads the entire stream into memory
public __toString ( ) : string
Результат string

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

Close both the remote stream and buffer stream
public close ( )

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

public getContentEncoding ( )

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

public getContentType ( )

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

Always retrieve custom data from the remote stream {@inheritdoc}
public getCustomData ( $key )

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

public getMetaData ( $key = null )

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

public getSize ( )

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

public getStream ( )

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

public getStreamType ( )

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

public getUri ( )

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

public getWrapper ( )

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

public getWrapperData ( )

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

public isConsumed ( )

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

public read ( $length )

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

public readLine ( $maxLength = null )

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

public rewind ( )

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

public seek ( $offset, $whence = SEEK_SET )

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

Always set custom data on the remote stream {@inheritdoc}
public setCustomData ( $key, $value )

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

Does not support custom rewind functions
public setRewindFunction ( $callable )

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

public setStream ( $stream, $size )

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

public write ( $string )

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

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

Remote stream used to actually pull data onto the buffer
protected $remoteStream

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

The number of bytes to skip reading due to a write on the temporary buffer
protected $skipReadBytes