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

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

folded/http
===========

HTTP utilities for your web app.

0.1.2(5y ago)098[1 issues](https://github.com/folded-php/http/issues)1MITPHPPHP ^7.1

Since Sep 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/folded-php/http)[ Packagist](https://packagist.org/packages/folded/http)[ Docs](https://github.com/folded-php/http#readme)[ RSS](/packages/folded-http/feed)WikiDiscussions next Synced 1w ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

🌐 http
======

[](#globe_with_meridians-http)

[![Packagist License](https://camo.githubusercontent.com/f565996f80894bb099b6faca5f2ddb7eed01e06659d11294f729ef1a58305006/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666f6c6465642f68747470)](https://github.com/folded-php/http/blob/next/LICENSE) [![Packagist PHP Version Support](https://camo.githubusercontent.com/3fabbfc89a970eabd0653d780f0c9b6267bb8b69023c54ed248adea4ce4579b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666f6c6465642f68747470)](https://camo.githubusercontent.com/3fabbfc89a970eabd0653d780f0c9b6267bb8b69023c54ed248adea4ce4579b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666f6c6465642f68747470) [![Packagist Version](https://camo.githubusercontent.com/d7081deb5bf86daaee3d0203d87ee623deaf2228016fed1094b5645869a4efd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6c6465642f68747470)](https://packagist.org/packages/folded/http) [![Unit Tests](https://github.com/folded-php/http/workflows/Unit%20Tests/badge.svg)](https://github.com/folded-php/http/actions?query=workflow%3A%22Unit+Tests%22) [![Maintainability](https://camo.githubusercontent.com/05dba0883318966d34c483abfe6060068e8c3c7575fd062ff3e129ebc23f0ed2/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65646564313463626239643663633365656334352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/folded-php/http/maintainability)

HTTP utilities for your web app.

Summary
-------

[](#summary)

- [Installation](#installation)
- [Requirements](#requirements)
- [API](#api)
    - [Information response](#information-response)
        - [Continue](#continue)
        - [Switching protocols](#switching-protocols)
        - [Processing](#processing)
        - [Early hints](#early-hints)
    - [Success](#success)
        - [Created](#created)
        - [Accepted](#accepted)
        - [Non-authoritative information](#non-authoritative-information)
        - [No content](#no-content)
        - [Reset content](#reset-content)
        - [Partial content](#partial-content)
        - [Multi-status](#multi-status)
        - [Already reported](#already-reported)
        - [Instance-manipulations used](#instance-manipulations-used)
    - [Redirection](#redirection)
        - [Multiple choices](#multiple-choices)
        - [Moved permanently](#moved-permanently)
        - [Found (moved temporarily)](#found-moved-temporarily)
        - [See other](#see-other)
        - [Not modified](#not-modified)
        - [Use proxy](#use-proxy)
        - [Switch proxy](#switch-proxy)
        - [Temporary redirect](#temporary-redirect)
        - [Permanent redirect](#permanent-redirect)
    - [Error](#error)
        - [Bad request](#bad-request)
        - [Unauthorized](#unauthorized)
        - [Payment required](#payment-required)
        - [Forbidden](#forbidden)
        - [Not found](#not-found)
        - [Method not allowed](#method-not-allowed)
        - [Not acceptable](#not-acceptable)
        - [Proxy authentication required](#proxy-authentication-required)
        - [Request timeout](#request-timeout)
        - [Conflict](#conflict)
        - [Gone](#gone)
        - [Length required](#length-required)
        - [Precondition failed](#precondition-failed)
        - [Payload too large](#payload-too-large)
        - [URI too long](#uri-too-long)
        - [Unsupported media type](#unsupported-media-type)
        - [Range not satisfiable](#range-not-satisfiable)
        - [Expectation failed](#expectation-failed)
        - [I'm a teapot](#im-a-teapot)
        - [Misdirected request](#misdirected-request)
        - [Unprocessable entity](#unprocessable-entity)
        - [Locked](#locked)
        - [Failed dependency](#failed-dependency)
        - [Too early](#too-early)
        - [Upgrade required](#upgrade-required)
        - [Precondition required](#precondition-failed)
        - [Too many requests](#too-many-requests)
        - [Request header fields too large](#request-header-fields-too-large)
        - [Unavailable for legal reasons](#unavailable-for-legal-reasons)
    - [Server error](#server-error)
        - [Internal server error](#internal-server-error)
        - [Not implemented](#not-implemented)
        - [Bad gateway](#bad-gateway)
        - [Service unavailable](#service-unavailable)
        - [Gateway timeout](#gateway-timeout)
        - [Http version not supported](#http-version-not-supported)
        - [Variant also negotiates](#variant-also-negotiates)
        - [Insufficient storage](#insufficient-storage)
        - [Loop detected](#loop-detected)
        - [Not extended](#not-extended)
        - [Network authentication required](#network-authentication-required)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [License](#license)

Requirements
------------

[](#requirements)

- [PHP 7.1 (at least)](https://www.php.net/downloads)
- [Composer](https://getcomposer.org/)

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

[](#installation)

```
$ composer require folded/http
```

[⬆️ Back to summary](#summary).

API
---

[](#api)

[⬆️ Back to summary](#summary).

### Information response

[](#information-response)

[⬆️ Back to summary](#summary).

#### Continue

[](#continue)

```
