Skip to content

Promise->getResponse exist ? #171

Closed
Closed
@tolbon

Description

@tolbon

Hello developers,

I make a sample code with HttPlug and i see in your docs
http://docs.php-http.org/

if (Promise::FULFILLED === $promise->getState()) {
    $response = $promise->getResponse();
} 

But when I execute this code an exception is throw :

Call to undefined method Http\Adapter\Guzzle6\Promise::getResponse()

I browse code and exactly I didn't see getResponse

Moreover I see in this docs

Then you can get the response of the promise if it’s in FULFILLED state with $promise->getResponse() call or get the error of the promise if it’s in REJECTED state with $promise->getRequest() call

No getRequest in code.

Old docs or I missing something ?

Thx for your response and your work

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions