Skip to content

Commit 5f2ce4d

Browse files
committed
Prepare v0.8.5 release
1 parent 21d36d8 commit 5f2ce4d

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

CHANGELOG.md

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

3+
## 0.8.5 (2019-10-29)
4+
5+
* Internal refactorings and optimizations to improve request parsing performance.
6+
Benchmarks suggest number of requests/s improved by ~30% for common `GET` requests.
7+
(#345, #346, #349 and #350 by @clue)
8+
9+
* Add documentation and example for JSON/XML request body and
10+
improve documentation for concurrency and streaming requests and for error handling.
11+
(#341 and #342 by @clue)
12+
313
## 0.8.4 (2019-01-16)
414

515
* Improvement: Internal refactoring to simplify response header logic.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ $server = new Server(function (ServerRequestInterface $request) {
371371

372372
The response in the above example will return a response body with a link.
373373
The URL contains the query parameter `foo` with the value `bar`.
374-
Use [`htmlentities`](http://php.net/manual/en/function.htmlentities.php)
374+
Use [`htmlentities`](https://www.php.net/manual/en/function.htmlentities.php)
375375
like in this example to prevent
376376
[Cross-Site Scripting (abbreviated as XSS)](https://en.wikipedia.org/wiki/Cross-site_scripting).
377377

@@ -1054,7 +1054,7 @@ A middleware request handler is expected to adhere the following rules:
10541054
* It returns either:
10551055
* An instance implementing `ResponseInterface` for direct consumption.
10561056
* Any promise which can be consumed by
1057-
[`Promise\resolve()`](http://reactphp.org/promise/#resolve) resolving to a
1057+
[`Promise\resolve()`](https://reactphp.org/promise/#resolve) resolving to a
10581058
`ResponseInterface` for deferred consumption.
10591059
* It MAY throw an `Exception` (or return a rejected promise) in order to
10601060
signal an error condition and abort the chain.
@@ -1113,7 +1113,7 @@ Note that as per the above documentation, the `$next` middleware request handler
11131113
`ResponseInterface` directly or one wrapped in a promise for deferred
11141114
resolution.
11151115
In order to simplify handling both paths, you can simply wrap this in a
1116-
[`Promise\resolve()`](http://reactphp.org/promise/#resolve) call like this:
1116+
[`Promise\resolve()`](https://reactphp.org/promise/#resolve) call like this:
11171117

11181118
```php
11191119
$server = new Server(array(
@@ -1135,7 +1135,7 @@ The previous example does not catch any exceptions and would thus signal an
11351135
error condition to the `Server`.
11361136
Alternatively, you can also catch any `Exception` to implement custom error
11371137
handling logic (or logging etc.) by wrapping this in a
1138-
[`Promise`](http://reactphp.org/promise/#promise) like this:
1138+
[`Promise`](https://reactphp.org/promise/#promise) like this:
11391139

11401140
```php
11411141
$server = new Server(array(
@@ -1326,7 +1326,7 @@ $server = new StreamingServer(array((
13261326
See also [example #12](examples) for more details.
13271327

13281328
By default, this middleware respects the
1329-
[`upload_max_filesize`](http://php.net/manual/en/ini.core.php#ini.upload-max-filesize)
1329+
[`upload_max_filesize`](https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize)
13301330
(default `2M`) ini setting.
13311331
Files that exceed this limit will be rejected with an `UPLOAD_ERR_INI_SIZE` error.
13321332
You can control the maximum filesize for each individual file upload by
@@ -1338,9 +1338,9 @@ new RequestBodyParserMiddleware(8 * 1024 * 1024); // 8 MiB limit per file
13381338
```
13391339

13401340
By default, this middleware respects the
1341-
[`file_uploads`](http://php.net/manual/en/ini.core.php#ini.file-uploads)
1341+
[`file_uploads`](https://www.php.net/manual/en/ini.core.php#ini.file-uploads)
13421342
(default `1`) and
1343-
[`max_file_uploads`](http://php.net/manual/en/ini.core.php#ini.max-file-uploads)
1343+
[`max_file_uploads`](https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads)
13441344
(default `20`) ini settings.
13451345
These settings control if any and how many files can be uploaded in a single request.
13461346
If you upload more files in a single request, additional files will be ignored
@@ -1370,13 +1370,13 @@ new RequestBodyParserMiddleware(10 * 1024, 100); // 100 files with 10 KiB each
13701370
Files that exceed this limit will be rejected with an `UPLOAD_ERR_FORM_SIZE` error.
13711371

13721372
> This middleware respects the
1373-
[`max_input_vars`](http://php.net/manual/en/info.configuration.php#ini.max-input-vars)
1373+
[`max_input_vars`](https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars)
13741374
(default `1000`) and
1375-
[`max_input_nesting_level`](http://php.net/manual/en/info.configuration.php#ini.max-input-nesting-level)
1375+
[`max_input_nesting_level`](https://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level)
13761376
(default `64`) ini settings.
13771377

13781378
> Note that this middleware ignores the
1379-
[`enable_post_data_reading`](http://php.net/manual/en/ini.core.php#ini.enable-post-data-reading)
1379+
[`enable_post_data_reading`](https://www.php.net/manual/en/ini.core.php#ini.enable-post-data-reading)
13801380
(default `1`) ini setting because it makes little sense to respect here and
13811381
is left up to higher-level implementations.
13821382
If you want to respect this setting, you have to check its value and
@@ -1418,7 +1418,7 @@ The recommended way to install this library is [through Composer](https://getcom
14181418
This will install the latest supported version:
14191419

14201420
```bash
1421-
$ composer require react/http:^0.8.4
1421+
$ composer require react/http:^0.8.5
14221422
```
14231423

14241424
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)