HttpFulfilledPromise
in package
implements
Promise
Fulfilled HTTP promise compatible with every supported HTTPlug version.
Tags
Table of Contents
Interfaces
- Promise
Methods
- __construct() : mixed
- getState() : string
- then() : mixed
- wait() : mixed
Methods
__construct()
public
__construct(ResponseInterface $response) : mixed
Parameters
- $response : ResponseInterface
getState()
public
getState() : string
Tags
Return values
stringthen()
public
then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : mixed
Parameters
- $onFulfilled : callable|null = null
- $onRejected : callable|null = null
Tags
wait()
public
wait([mixed $unwrap = true ]) : mixed
Parameters
- $unwrap : mixed = true