Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using guzzle is promise response is something that can be inspected in network tab in browser?
- $promise = $client->requestAsync('GET', 'http://httpbin.org/get');
- $promise->then(
- function (ResponseInterface $res) {
- echo $res->getStatusCode() . "\n";
- },
- function (RequestException $e) {
- echo $e->getMessage() . "\n";
- echo $e->getRequest()->getMethod();
- }
- );
- above code does not echo anything?
Add Comment
Please, Sign In to add comment