diff --git a/CHANGELOG.md b/CHANGELOG.md index 8718c68d..9734f11a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.2.0 (2020-12-04) + +* Feature: Keep request body in memory also after consuming request body. + (#395 by @clue) + + This means consumers can now always access the complete request body as + detailed in the documentation. This allows building custom parsers and more + advanced processing models without having to mess with the default parsers. + ## 1.1.0 (2020-09-11) * Feature: Support upcoming PHP 8 release, update to reactphp/socket v1.6 and adjust type checks for invalid chunk headers. diff --git a/README.md b/README.md index a1061b6a..9b50acd9 100644 --- a/README.md +++ b/README.md @@ -287,7 +287,7 @@ header. If the server requires authentication, if may return a `401` (Unauthoriz status code which will reject the request by default (see also the [`withRejectErrorResponse()` method](#withrejecterrorresponse) below). -In order to pass authentication details, you can simple pass the username and +In order to pass authentication details, you can simply pass the username and password as part of the request URL like this: ```php @@ -2185,7 +2185,7 @@ given timeout value applied. #### withFollowRedirects() -The `withTimeout(bool|int $followRedirects): Browser` method can be used to +The `withFollowRedirects(bool|int $followRedirects): Browser` method can be used to change how HTTP redirects will be followed. You can pass in the maximum number of redirects to follow: @@ -2732,7 +2732,7 @@ This project follows [SemVer](https://semver.org/). This will install the latest supported version: ```bash -$ composer require react/http:^1.1 +$ composer require react/http:^1.2 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.