Skip to content

Releases: php-http/httplug

2.4.1

23 Sep 11:42
@dbu dbu
2.4.1
Compare
Choose a tag to compare
  • Updated code to not raise warnings for nullable parameters in PHP 8.4.

2.4.0

14 Apr 15:10
@dbu dbu
2.4.0
Compare
Choose a tag to compare
  • Allow psr/http-message v2 in addition to v1
  • Deprecate Http\Client\HttpClient, use PSR-18 instead

2.3.0

21 Feb 09:53
@dbu dbu
2.3.0
Compare
Choose a tag to compare
  • Enabled the $onRejected callback of HttpRejectedPromise to return a promise for implementing a retry
    mechanism #168

2.2.0

13 Jul 15:44
@dbu dbu
2.2.0
191a0a1
Compare
Choose a tag to compare

Changed

  • Support PHP 7.1-8.0

2.1.0

27 Dec 10:08
@dbu dbu
2.1.0
Compare
Choose a tag to compare

Changed

  • Http\Client\Exception\NetworkException no longer extends Http\Client\Exception\RequestException, in accordance with PSR-18

Implementing PSR-18

31 Oct 09:23
v2.0.0
Compare
Choose a tag to compare

After two years of work the FIG finally accepted our proposal for HTTP Client standard as PSR-18. This is a huge step in the life of HTTPlug.

Many thanks to @Nyholm who spearheaded the effort from the very first moment and worked extremely hard to pull this off. Thanks to the working group and everyone else, who made this possible.

Fix issue with promises

31 Aug 08:47
Compare
Choose a tag to compare

During the development of plugins we faced a problem with exceptions thrown in plugins.

Any exceptions not implementing Http\Client\Exception ended up in an invalid argument error because of these lines:

https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38

This type leak allowed to inject an exception to be passed to the onRejected callback of a Promise.

In the current release we introduced HTTP specific promises which does not catch all exceptions, but HTTP ones. Every other exception will be thrown immediately.

First stable release

26 Jan 14:35
Compare
Choose a tag to compare
Merge pull request #109 from php-http/stable_release

Prepare stable release

First beta release

17 Dec 15:26
Compare
Choose a tag to compare

This release brings a cleaner exception concept which is documented directly in the interfaces.

There is also an initial support for discovering HTTP Clients using Puli.

Moved Promise to it's own package

13 Dec 11:57
Compare
Choose a tag to compare