Skip to content

Commit 3f4821c

Browse files
committed
Prepare v0.5.0 release
1 parent 604bf0a commit 3f4821c

File tree

3 files changed

+62
-16
lines changed

3 files changed

+62
-16
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 0.5.0 (2017-02-16)
4+
5+
* Feature / BC break: Change `Request` methods to be in line with PSR-7
6+
(#117 by @clue)
7+
* Rename `getQuery()` to `getQueryParams()`
8+
* Rename `getHttpVersion()` to `getProtocolVersion()`
9+
* Change `getHeaders()` to always return an array of string values
10+
for each header
11+
12+
* Feature / BC break: Update Socket component to v0.5 and
13+
add secure HTTPS server support
14+
(#90 and #119 by @clue)
15+
16+
```php
17+
// old plaintext HTTP server
18+
$socket = new React\Socket\Server($loop);
19+
$socket->listen(8080, '127.0.0.1');
20+
$http = new React\Http\Server($socket);
21+
22+
// new plaintext HTTP server
23+
$socket = new React\Socket\Server('127.0.0.1:8080', $loop);
24+
$http = new React\Http\Server($socket);
25+
26+
// new secure HTTPS server
27+
$socket = new React\Socket\Server('127.0.0.1:8080', $loop);
28+
$socket = new React\Socket\SecureServer($socket, $loop, array(
29+
'local_cert' => __DIR__ . '/localhost.pem'
30+
));
31+
$http = new React\Http\Server($socket);
32+
```
33+
34+
* BC break: Mark internal APIs as internal or private and
35+
remove unneeded `ServerInterface`
36+
(#118 by @clue, #95 by @legionth)
37+
338
## 0.4.4 (2017-02-13)
439

540
* Feature: Add request header accessors (à la PSR-7)

README.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@
22

33
[![Build Status](https://secure.travis-ci.org/reactphp/http.png?branch=master)](http://travis-ci.org/reactphp/http) [![Code Climate](https://codeclimate.com/github/reactphp/http/badges/gpa.svg)](https://codeclimate.com/github/reactphp/http)
44

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.
1829
1930
## Quickstart example
2031

@@ -255,7 +266,7 @@ The recommended way to install this library is [through Composer](http://getcomp
255266
This will install the latest supported version:
256267

257268
```bash
258-
$ composer require react/http:^0.4.4
269+
$ composer require react/http:^0.5
259270
```
260271

261272
More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react/http",
3-
"description": "Library for building an evented http server.",
4-
"keywords": ["http"],
3+
"description": "Event-driven, streaming plaintext HTTP and secure HTTPS server for ReactPHP",
4+
"keywords": ["event-driven", "streaming", "HTTP", "HTTPS", "server", "ReactPHP"],
55
"license": "MIT",
66
"require": {
77
"php": ">=5.3.0",

0 commit comments

Comments
 (0)