Guest User

Untitled

a guest
Apr 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using guzzle is promise response is something that can be inspected in network tab in browser?
  2.  
  3. $promise = $client->requestAsync('GET', 'http://httpbin.org/get');
  4. $promise->then(
  5. function (ResponseInterface $res) {
  6. echo $res->getStatusCode() . "\n";
  7. },
  8. function (RequestException $e) {
  9. echo $e->getMessage() . "\n";
  10. echo $e->getRequest()->getMethod();
  11. }
  12. );
  13.  
  14. above code does not echo anything?
Add Comment
Please, Sign In to add comment