|
2 | 2 |
|
3 | 3 | [](http://travis-ci.org/reactphp/http) [](https://codeclimate.com/github/reactphp/http) |
4 | 4 |
|
5 | | -Library for building an evented http server. |
6 | | - |
7 | | -This component builds on top of the `Socket` component to implement HTTP. Here |
8 | | -are the main concepts: |
9 | | - |
10 | | -* **Server**: Attaches itself to an instance of |
11 | | - `React\Socket\ServerInterface`, parses any incoming data as HTTP, emits a |
12 | | - `request` event for each request. |
13 | | -* **Request**: A `ReadableStream` which streams the request body and contains |
14 | | - meta data which was parsed from the request header. |
15 | | -* **Response** A `WritableStream` which streams the response body. You can set |
16 | | - the status code and response headers via the `writeHead()` method. |
17 | | - |
| 5 | +Event-driven, streaming plaintext HTTP and secure HTTPS server for [ReactPHP](https://reactphp.org/) |
| 6 | + |
| 7 | +**Table of Contents** |
| 8 | + |
| 9 | +* [Quickstart example](#quickstart-example) |
| 10 | +* [Usage](#usage) |
| 11 | + * [Server](#server) |
| 12 | + * [Request](#request) |
| 13 | + * [getMethod()](#getmethod) |
| 14 | + * [getQueryParams()](#getqueryparams] |
| 15 | + * [getProtocolVersion()](#getprotocolversion) |
| 16 | + * [getHeaders()](#getheaders) |
| 17 | + * [getHeader()](#getheader) |
| 18 | + * [getHeaderLine()](#getheaderline) |
| 19 | + * [hasHeader()](#hasheader) |
| 20 | + * [expectsContinue()](#expectscontinue) |
| 21 | + * [Response](#response) |
| 22 | + * [writeContinue()](#writecontinue) |
| 23 | + * [writeHead()](#writehead) |
| 24 | +* [Install](#install) |
| 25 | +* [Tests](#tests) |
| 26 | +* [License](#license) |
| 27 | + |
| 28 | +> Note: This project is in beta stage! Feel free to report any issues you encounter. |
18 | 29 |
|
19 | 30 | ## Quickstart example |
20 | 31 |
|
@@ -255,7 +266,7 @@ The recommended way to install this library is [through Composer](http://getcomp |
255 | 266 | This will install the latest supported version: |
256 | 267 |
|
257 | 268 | ```bash |
258 | | -$ composer require react/http:^0.4.4 |
| 269 | +$ composer require react/http:^0.5 |
259 | 270 | ``` |
260 | 271 |
|
261 | 272 | More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md). |
|
0 commit comments