PHP Class Http\Client\Promise\HttpFulfilledPromise

Inheritance: implements Http\Promise\Promise
Afficher le fichier Open project: php-http/adapter

Méthodes publiques

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

Method Details

__construct() public méthode

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

getState() public méthode

public getState ( )

then() public méthode

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

wait() public méthode

public wait ( $unwrap = true )