PHP Class React\HttpClient\Response

Inheritance: extends Evenement\EventEmitter, implements React\Stream\ReadableStreamInterface
Mostrar archivo Open project: reactphp/http-client Class Usage Examples

Public Methods

Method Description
__construct ( React\Stream\ReadableStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers )
close ( Exception $error = null )
getCode ( )
getHeaders ( )
getProtocol ( )
getReasonPhrase ( )
getVersion ( )
handleData ( $data )
handleEnd ( )
handleError ( Exception $error )
isReadable ( )
pause ( )
pipe ( React\Stream\WritableStreamInterface $dest, array $options = [] )
resume ( )

Method Details

__construct() public method

public __construct ( React\Stream\ReadableStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers )
$stream React\Stream\ReadableStreamInterface

close() public method

public close ( Exception $error = null )
$error Exception

getCode() public method

public getCode ( )

getHeaders() public method

public getHeaders ( )

getProtocol() public method

public getProtocol ( )

getReasonPhrase() public method

public getReasonPhrase ( )

getVersion() public method

public getVersion ( )

handleData() public method

public handleData ( $data )

handleEnd() public method

public handleEnd ( )

handleError() public method

public handleError ( Exception $error )
$error Exception

isReadable() public method

public isReadable ( )

pause() public method

public pause ( )

pipe() public method

public pipe ( React\Stream\WritableStreamInterface $dest, array $options = [] )
$dest React\Stream\WritableStreamInterface
$options array

resume() public method

public resume ( )