GuzzleGet Example of HTTP Message Strategies PSR

0.4.0 2017-05-18 19:14 UTC

This package is not auto-updated.

Last update: 2024-10-27 02:31:16 UTC


README

SensioLabsInsight

Install

$ composer require http-message-strategies-interop/example-guzzle-get

Usage

use Interop\Http\Message\Strategies\Examples\GuzzleGet\GuzzleGet;
use GuzzleHttp\Psr7\Request;

$gget = new GuzzleGet(['base_uri' => 'https://httpbin.org']);

$response0 = $gget(new Request('GET', '/'));
$response1 = $gget(new Request('GET', '/get'));

Related

License

MIT © Michael Mayer