Skip to content

Releases: amphp/http-client

5.3.4

16 Aug 20:50
v5.3.4
75ad215

Choose a tag to compare

What's Changed

  • Fixed an issue where an HTTP/2 connection was closed unexpectedly, on rare occasions an exception was being thrown to the event-loop error handler
  • Made an optimization when shutting down an HTTP/2 connection to only create an exception instance if there are outstanding requests on the connection.

Full Changelog: v5.3.3...v5.3.4

5.3.3

21 May 03:30
v5.3.3
09212eb

Choose a tag to compare

What's Changed

  • Provided a better fix for #390, restoring back-pressure on the connection as the response body is consumed

Full Changelog: v5.3.2...v5.3.3

5.3.2

18 May 18:38
v5.3.2
cf885bf

Choose a tag to compare

What's Changed

  • Fixed HTTP/1.x connections remaining open if the response body was not fully consumed (#390)

Full Changelog: v5.3.1...v5.3.2

5.3.1

30 Apr 03:05
v5.3.1
c6a789d

Choose a tag to compare

What's Changed

  • Fixed setting the stream "ended" flag on HTTP/2 streams for requests which have no body (regression in 5.3.0). Without this flag, an empty data frame was being sent, which was considered invalid by some HTTP/2 servers, causing the stream to be closed without completing the response.

Full Changelog: v5.3.0...v5.3.1

5.3.0

16 Mar 17:45
v5.3.0
d50928e

Choose a tag to compare

What's Changed

  • Enhance TLS handshake error message with additional details from previous exception by @luzrain in #385
  • Proposal: TlsException to replace SocketException for TLS handshake errors by @luzrain in #384
  • Support for simultaneously streaming request body and response body by @Nek- and @trowski in #380
  • Throws TimeoutException when TransferTimeout is exceeded by @luzrain in #382

New Contributors

Full Changelog: v5.2.2...v5.3.0

5.2.2

15 Jan 04:08
v5.2.2
a3e8711

Choose a tag to compare

What's Changed

  • Changed the default User-Agent header to contain only characters which should be accepted by all HTTP servers (#371).
  • Fixed window update potentially causing two HTTP/2 frames to be sent with the END_STREAM flag set (#373).
  • Fixed early responses on HTTP/2 (a response sent before the request is fully sent) causing an HttpException to be thrown instead of returning the response.

Full Changelog: v5.2.1...v5.2.2

5.2.1

13 Dec 18:04
v5.2.1
2117f7e

Choose a tag to compare

What's Changed

  • Replaced deprecated method calls from league/uri v6 by @Bilge in #372

New Contributors

Full Changelog: v5.2.0...v5.2.1

4.6.5

13 Dec 18:01
v4.6.5
6cac9e1

Choose a tag to compare

What's Changed

  • Use non-deprecated methods with league/uri 7 by @xabbuh in #369

New Contributors

Full Changelog: v4.6.4...v4.6.5

5.2.0

07 Dec 00:42
v5.2.0
3088887

Choose a tag to compare

What's Changed

  • Added inactivity timeout to SetRequestTimeout interceptor by @Nek- in #362
  • Fixed the exception type thrown by SizeLimitingReadableStream, changing it to StreamException to comply with the ReadableStream interface
  • Fixed body size limit of 0 (no limit) causing an exception when using DecompressingReadableStream
  • Fixed handling of GOAWAY frames from servers, allowing streams with an ID lower than that provided in the GOAWAY frame to complete before closing the connection (#366)

New Contributors

  • @Nek- made their first contribution in #362

Full Changelog: v5.1.0...v5.2.0

5.1.0

21 Apr 16:47
v5.1.0
483df9a

Choose a tag to compare

What's Changed

  • Add BufferedContent::fromJson() by @trowski in #355
  • Add Form::addNestedFields() by @trowski in #356
  • Make implicit nullable types explicit to avoid deprecation notice in PHP 8.4
  • RequestBody -> HttpContent by @ShiSHcat in #358

New Contributors

Full Changelog: v5.0.1...v5.1.0