Skip to content

Releases: swift-server/async-http-client

AsyncHTTPClient 1.13.1

09 Nov 15:46
5bee16a
Compare
Choose a tag to compare

SemVer Patch

  • Use #fileID/#filePath instead of #file (#644)
  • Tolerate shutdown message after channel is closed (#646)
  • Correctly shutdown HTTP2ConnectionPool if connection creation fails. (#647)

Other Changes

  • Remove obsolete notes in README.md (#645)

AsyncHTTPClient 1.13.0

04 Nov 09:29
10f42e6
Compare
Choose a tag to compare

SemVer Minor

  • FileDownloadDelegate: mark Progress as Sendable (#643)
  • Raise minimum supported Swift version from 5.4 to 5.5.2 (#630)
  • Make HTTPClientResponse.init public (#632)
  • Add Hashable conformance to HTTPClient.Configuration.Proxy and HTTPClient.Configuration.HTTPVersion (#634, #636)
  • Handle ResponseAccumulator not being able to buffer large response in memory (#637)

SemVer Patch

  • Allow immediate request failure on connection error (#625)
  • Fix request hang if delegate fails promise returned by didReceiveBodyPart (#633)
  • Reduce use of HTTPClient.Configuration in the Connection objects (#635)
  • Replace NIOSendable with Sendable (#640)
  • Remove #if compiler(>=5.5) (#641)

Other Changes

  • Tests run ~5x faster ⚡️ (#639)

AsyncHTTPClient 1.12.0

27 Sep 15:01
03b3e7b
Compare
Choose a tag to compare

SemVer Minor

  • Adopt Sendable (#621)
  • Add a future-returning shutdown method (#626)

SemVer Patch

  • Use NIOCore.System.coreCount for the fileIO thread pool (#618, patch credit to @karwa)
  • Remove unused dependency NIOFoundationCompat (#619, patch credit to @karwa)
  • Allow HTTPClientRequest to be executed multiple times if body is an AsyncSequence (#620)
  • Replace Lock with NIOLock (#628, #629)

Other Changes

  • We stop pretending that AHC is simple (#624)

AsyncHTTPClient 1.11.5

18 Aug 15:02
fc510a3
Compare
Choose a tag to compare

SemVer Patch

  • Fix thread leak in FileDownloadDelegate (#614)
  • Accurately apply the connect timeout in async code (#616)
  • Tolerate more data after request body is cancelled (#617)

Other Changes

  • Use DocC for documentation (#613)
  • Validate missing imports in CI (#615)

AsyncHTTPClient 1.11.4

08 Aug 11:05
df87a86
Compare
Choose a tag to compare

SemVer Patch

  • Report last connection error if request deadline is exceeded with async/await API (#608)
  • Don’t call didReceiveError twice if deadline is exceeded and request is canceled afterwards (#609)
  • Support transparent decompression with HTTP/2 (#610)
  • Limit max recursion depth delivering body parts (#611)

AsyncHTTPClient 1.11.3

03 Aug 09:22
0527bbb
Compare
Choose a tag to compare

SemVer Patch

  • Remove the last remaining NIOAtomic (#607)

AsyncHTTPClient 1.11.2

02 Aug 14:15
2adca4b
Compare
Choose a tag to compare

SemVer Patch

  • Report last connection error if request deadline is exceeded (#601)
  • Use swift-atomics instead of NIOAtomics (#603)

Other Changes

  • Use 5.7 nightlies (#593)
  • Fix flaky Network.framework testConnectionFailError test (#600)

AsyncHTTPClient 1.11.1

20 Jun 15:57
794dc9d
Compare
Choose a tag to compare

SemVer Patch

  • Add testSelfSignedCertificateIsRejectedWithCorrectError (#594)
  • Correctly reset our state after .sendEnd (#597)
  • Correctly handle Connection: close with streaming (#598)
  • Correctly close the connection if sendEnd fails (#599)

AsyncHTTPClient 1.11.0

13 Jun 12:26
0f21b44
Compare
Choose a tag to compare

SemVer Minor

  • Improve errors and testing using NIOTS (#588)

SemVer Patch

  • Fix crash when receiving 2xx response before stream is complete. (#591)
  • Use a local TCP server that doesn’t accept connections on macOS for testConnectTimeout() (#592)

AsyncHTTPClient 1.10.0

27 Apr 16:34
2442598
Compare
Choose a tag to compare

SemVer Minor

  • Add HTTPClientError shortDescription property (#583, patch credit to @cpriebe)
  • SSLProtocol tls* deprecations (#561)
  • Drop support for Swift 5.2 and 5.3 (#581)

SemVer Patch

  • Crash fix: HTTP2ClientRequestHandler can deal with failing writes (#558)
  • Call didSendRequestPart at the right time (#566)
  • Tolerate the request stream being started after .finished (#577)
  • [HTTP2] Tolerate GoAway and Settings frames after connection close (#578)
  • [HTTP1] Tolerate immediate write errors (#579)
  • [Redirect] Allow redirect response to have body (#580)

Other Changes

  • ci update (#570)
  • Use SPM API diff checker (#572)
  • Fix flaky TransactionTests.testResponseStreamFails() test (#582)
  • Fix flaky HTTPClientTests.testResponseDelayGet() test (#584)