PHPackages                             fracture/http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. fracture/http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

fracture/http
=============

HTTP abstraction library, extracted dependency of fracture/router.

0.4.2(10y ago)41742[1 PRs](https://github.com/fracture/http/pulls)1BSDPHPPHP &gt;=5.5.0

Since Mar 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fracture/http)[ Packagist](https://packagist.org/packages/fracture/http)[ Docs](https://github.com/fracture/http)[ RSS](/packages/fracture-http/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (1)

Fracture\\Http
==============

[](#fracturehttp)

[![Build Status](https://camo.githubusercontent.com/483c9a100188ec0cc82455dd0fb7ce63a029abbfcca48e7d693eede7cb0c9b8a/68747470733a2f2f7472617669732d63692e6f72672f66726163747572652f687474702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/fracture/http)[![Code Coverage](https://camo.githubusercontent.com/26db70ef7b4e94d611ff48055f46cc209dccd4391039422e2fd940cd63edec8d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726163747572652f687474702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fracture/http/?branch=master)[![Scrutinizer](https://camo.githubusercontent.com/6330009b36dc64046d6d7a3f65cccf6be0096869983efde9a69b894d26035c0e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66726163747572652f687474702e737667)](https://scrutinizer-ci.com/g/fracture/http/?branch=master)[![Packagist](https://camo.githubusercontent.com/16dadc69035a5bfaea9975a72b5e27edffef99d02855db35a725edc938e5b17b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66726163747572652f687474702e737667)](https://packagist.org/packages/fracture/http)

Introduction
------------

[](#introduction)

A simple abstraction for handling the HTTP requests and responses. Library is made for interacting with [**fracture\\routing**](https://github.com/fracture/routing) and provides simple object-oriented interface.

Installation
------------

[](#installation)

You can add the library to your project using composer with following command:

```
composer require fracture/http
```

\##Usage

All of the following code will assume that the Composer's autoloader has already been included.

\###Basic request initialization

While initializing a new `Request` instance manually is possible, for said instance to be fully prepared, it require several additional steps. To simplify this process, you should use `RequestBuider`, which will perform all of those steps:

```
