Skip to content

Releases: php-http/httplug

2.4.1

Choose a tag to compare

@dbu dbu released this 23 Sep 11:42
2.4.1
  • Updated code to not raise warnings for nullable parameters in PHP 8.4.

2.4.0

Choose a tag to compare

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

2.3.0

Choose a tag to compare

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

2.2.0

Choose a tag to compare

@dbu dbu released this 13 Jul 15:44
2.2.0
191a0a1

Changed

  • Support PHP 7.1-8.0

2.1.0

Choose a tag to compare

@dbu dbu released this 27 Dec 10:08
2.1.0

Changed

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

Implementing PSR-18

Choose a tag to compare

@sagikazarmark sagikazarmark released this 31 Oct 09:23
v2.0.0

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

Choose a tag to compare

@sagikazarmark sagikazarmark released this 31 Aug 08:47

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

Choose a tag to compare

@sagikazarmark sagikazarmark released this 26 Jan 14:35
Merge pull request #109 from php-http/stable_release

Prepare stable release

First beta release

Choose a tag to compare

@sagikazarmark sagikazarmark released this 17 Dec 15:26

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

Pre-release

Choose a tag to compare

@sagikazarmark sagikazarmark released this 13 Dec 11:57