Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cspray/http-request-builder

Easily create @amphp Request objects with a fluent API
https://github.com/cspray/http-request-builder

Last synced: about 2 months ago
JSON representation

Easily create @amphp Request objects with a fluent API

Awesome Lists containing this project

README

        

# Http Request Builder

A library to fluently create [amphp/http-client](https://github.com/amphp/http-client) Request objects.

## Installation

```
composer require cspray/http-request-builder
```

## Usage

This library has 1 focused purpose; easily create Requests.

```php
'enthusiastic,positivity,clashing'
])->post('https://api.example.com');

\Amp\Http\Client\HttpClientBuilder::buildDefault()->request($request);
```