All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Updated code to not raise warnings for nullable parameters in PHP 8.4.
- Allow
psr/http-message
v2 in addition to v1 - Deprecate
Http\Client\HttpClient
, use PSR-18 instead
- Enabled the
$onRejected
callback ofHttpRejectedPromise
to return a promise for implementing a retry mechanism #168
- Support PHP 7.1-8.0
Http\Client\Exception\NetworkException
no longer extendsHttp\Client\Exception\RequestException
, in accordance with PSR-18
2.0.0 - 2018-10-31
This version is no BC break for consumers using HTTPlug. However, HTTP clients that implement HTTPlug need to adjust because we add return type declarations.
- Support for PSR-18 (HTTP client).
- BC Break:
HttpClient::sendRequest(RequestInterface $request)
has a return type annotation. The new signature isHttpClient::sendRequest(RequestInterface $request): ResponseInterface
. - BC Break:
RequestException::getRequest()
has a return type annotation. The new signature isRequestException::getRequest(): RequestInterface
.
- PHP 5 support
1.1.0 - 2016-08-31
- HttpFulfilledPromise and HttpRejectedPromise which respect the HttpAsyncClient interface
1.0.0 - 2016-01-26
- Stability configuration from composer
1.0.0-RC1 - 2016-01-12
- Updated package files
- Updated promise dependency to RC1
1.0.0-beta - 2015-12-17
- Puli configuration and binding types
- Exception concept
1.0.0-alpha3 - 2015-12-13
- Async client does not throw exceptions
- Promise interface moved to its own repository: php-http/promise
1.0.0-alpha2 - 2015-11-16
- Async client and Promise interface
1.0.0-alpha - 2015-10-26
- Better domain exceptions.
- Purpose of the library: general HTTP CLient abstraction.
- Request options: they should be configured at construction time.
- Multiple request sending: should be done asynchronously using Async Client.
getName
method
- Initial release