PHP Class Http\Client\Promise\HttpFulfilledPromise

Inheritance: implements Http\Promise\Promise
Datei anzeigen Open project: php-http/adapter

Public Methods

Method Description
__construct ( Psr\Http\Message\ResponseInterface $response )
getState ( )
then ( callable $onFulfilled = null, callable $onRejected = null )
wait ( $unwrap = true )

Method Details

__construct() public method

public __construct ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface

getState() public method

public getState ( )

then() public method

public then ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable

wait() public method

public wait ( $unwrap = true )