Change Log
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.
[2.4.1] - 2024-09-23
- Updated code to not raise warnings for nullable parameters in PHP 8.4.
[2.4.0] - 2023-04-14
Changed
- Allow
psr/http-message v2 in addition to v1
- Deprecate
Http\Client\HttpClient, use PSR-18 instead
[2.3.0] - 2022-02-21
Changed
- Enabled the
$onRejected callback of HttpRejectedPromise to return a promise for implementing a retry
mechanism #168
[2.2.0] - 2020-07-13
Changed
[2.1.0] - 2019-12-27
Changed
Http\Client\Exception\NetworkException no longer extends Http\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.
Added
- Support for PSR-18 (HTTP client).
Changed
- BC Break:
HttpClient::sendRequest(RequestInterface $request) has a return type annotation. The new
signature is HttpClient::sendRequest(RequestInterface $request): ResponseInterface.
- BC Break:
RequestException::getRequest() has a return type annotation. The new
signature is RequestException::getRequest(): RequestInterface.
Removed
1.1.0 - 2016-08-31
Added
- HttpFulfilledPromise and HttpRejectedPromise which respect the HttpAsyncClient interface
1.0.0 - 2016-01-26
Removed
- Stability configuration from composer
Changed
- Updated package files
- Updated promise dependency to RC1
Added
- Puli configuration and binding types
Changed
Changed
- Async client does not throw exceptions
Removed
Added
- Async client and Promise interface
Added
- Better domain exceptions.
Changed
- Purpose of the library: general HTTP CLient abstraction.
Removed
- Request options: they should be configured at construction time.
- Multiple request sending: should be done asynchronously using Async Client.
getName method
0.1.0 - 2015-06-03
Added