nyholm/http-client

A light weight and super fast HTTP client

0.1.0 2016-07-13 14:14 UTC

README

Latest Version Software License Total Downloads

A super light HTTP client that sends PSR-7 HTTP messages.

Install

Via Composer

$ composer require nyholm/http-client

Usage

// Create a PSR-7 request
$request = MessageFactoryDiscovery::find()->createRequest('GET', 'http://example.com');

// You will get back a PSR-7 response
$response = (new Client)->sendRequest($request);

Documentation

There is no configuration of any kind that could be done to this client. If you want more functionality you should use Plugins to HTTPlug. See their documentation.

The MIT License (MIT). Please see License File for more information.