Skip to content

Instantly share code, notes, and snippets.

@ardani
Created June 17, 2019 03:27
Show Gist options
  • Save ardani/5ccf5032b42d24b480c9e115788ee5a0 to your computer and use it in GitHub Desktop.
Save ardani/5ccf5032b42d24b480c9e115788ee5a0 to your computer and use it in GitHub Desktop.
<?php
$promise = $client->getAsync('http://httpbin.org/get');
$promise = $client->deleteAsync('http://httpbin.org/delete');
$promise = $client->headAsync('http://httpbin.org/get');
$promise = $client->optionsAsync('http://httpbin.org/get');
$promise = $client->patchAsync('http://httpbin.org/patch');
$promise = $client->postAsync('http://httpbin.org/post');
$promise = $client->putAsync('http://httpbin.org/put');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment