PHPackages                             air-php/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. air-php/http

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

air-php/http
============

A HTTP library.

v0.6(10y ago)14.0k↓75%22PHPPHP &gt;=5.4.0

Since Mar 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/air-php/http)[ Packagist](https://packagist.org/packages/air-php/http)[ RSS](/packages/air-php-http/feed)WikiDiscussions master Synced 1mo ago

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

HTTP
====

[](#http)

[![Build Status](https://camo.githubusercontent.com/0db1fb785bfe0503d988032b4b3b501c66aaea7edd86a057fef2f76ad05127a4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6169722d7068702f687474702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/air-php/http/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/09bda0ee3916da1d5b2cf64861c84fbe1c825feb9ef97dc43841aa13c34a737d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6169722d7068702f687474702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/air-php/http/?branch=master)

The HTTP library includes classes for abstracting the [Hypertext Transfer Protocol](http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol).

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

[](#installation)

Installation via [Composer](https://getcomposer.org/) is recommended.

```
"require": {
    "air-php/http": "dev-master"
}

```

Request
-------

[](#request)

The `Request` class encapsulates a HTTP request. You can create a `Request` like so:

```
