Skip to content

Releases: swift-server/async-http-client

1.22.0

19 Aug 09:23
e8babad
Compare
Choose a tag to compare

What's Changed

SemVer Minor

  • Make ConnectionPool's retryConnectionEstablishment public by @andreasley in #744
  • Add support for request body to be larger than 2GB on 32-bit devices by @aryan-25 in #746 and #749
  • Mark HTTPClient.Response Sendable by @weissi in #759
  • Assume http2 connection by default, instead of http1 by @ayush1794 in #758

SemVer Patch

  • Fix leading slash issue in relative URL requests by @aryan-25 in #747
  • Fix OOM issue when setting concurrentHTTP1ConnectionsPerHostSoftLimit to Int.max by @aryan-25 in #763

Other Changes

New Contributors

Full Changelog: 1.21.2...1.22.0

AsyncHTTPClient 1.21.2

17 Jun 14:11
0ae99db
Compare
Choose a tag to compare

SemVer Patch

  • Increase decompression limit ratio of HTTPClient.shared 10 -> 25 (#740, patch credit to @MahdiBM)

Other Changes

AsyncHTTPClient 1.21.1

01 May 12:46
a220837
Compare
Choose a tag to compare

SemVer Patch

  • Disable SETTINGS_ENABLE_PUSH HTTP/2 setting (#741)

AsyncHTTPClient 1.21.0

08 Apr 08:58
fb308ee
Compare
Choose a tag to compare

SemVer Minor

  • Introduce HTTPClient.shared a globally shared singleton (#705)
  • Raise minimum Swift version to 5.8 (#729)

SemVer Patch

  • Add support for Musl (#726)
  • Fix write timeout not being initialised (#730)

Other Changes

  • Renew certificates in tests (#731)
  • Move availability guard to correct test (#734)

AsyncHTTPClient 1.20.1

16 Jan 11:13
2914386
Compare
Choose a tag to compare

SemVer Patch

  • Update minimum swift-nio version (#725)

AsyncHTTPClient 1.20.0

21 Dec 14:15
5ccda44
Compare
Choose a tag to compare

SemVer Minor

  • HTTPClientRequest: allow custom TLS config (#709)
  • Automatically chunk large request bodies (#710)
  • Support custom backgroundActivityLogger while using the default ELG. (#711)
  • Bump minimum Swift version to 5.7 (#712)
  • Add an idle write timeout (#718)

SemVer Patch

  • Update Package.swift (#722, patch credit to @nishant-dani)
  • Fix potential race conditions when cancelling read/write idle timers (#720)
  • Use the given connection pool idle timeout in the HTTPClient.Configuration inits (#723)

Other Changes

  • Fix wrong/outdated connect timeout documentation (#714, patch credit to @MahdiBM)
  • Fix flaky test TransactionTests.testCancelAsyncRequest (#707)
  • testPlatformConnectErrorIsForwardedOnTimeout port reuse (#716)
  • Add missing availability guards in tests (#719)

AsyncHTTPClient 1.19.0

22 Aug 10:20
16f7e62
Compare
Choose a tag to compare

SemVer Minor

  • use NIOSingletons EventLoops/NIOThreadPool instead of spawning new (#697)

SemVer Patch

  • Replace os() with canImport(Darwin) (#693, patch credit to @brennobemoura)
  • Removed duplicated code (#694, patch credit to @brennobemoura)
  • Fix auhorization typo (#695, patch credit to @brennobemoura)

Other Changes

  • Add unit tests for NWWaitingHandler, closes #589 (#702, patch credit to @natikgadzhi)
  • Adopt the Swift CoC (#691)
  • Fix flaky AsyncAwaitEndToEndTests.testImmediateDeadline test (#698)
  • Add timeout to RequestBagTests.testCancelFailsTaskAfterRequestIsSent test (#699)
  • Remove tests relying on OS-dependent behaviour (#703)

AsyncHTTPClient 1.18.0

22 May 09:55
78db67e
Compare
Choose a tag to compare

SemVer Minor

  • Drop Swift 5.5 (#686)
  • Tolerate new request after connection error happened (#688)

AsyncHTTPClient 1.17.0

14 Apr 14:51
333e60c
Compare
Choose a tag to compare

SemVer Minor

  • Pass request Task to FileDownloadDelegate reportHead and reportProgress closures (#681)
  • Add support for custom cancellation error (#683)

SemVer Patch

  • Add missing availability annotations for iOS, tvOS and watchOS (#685, patch credit to @cbaker6)

AsyncHTTPClient 1.16.0

13 Apr 08:41
5b4f03d
Compare
Choose a tag to compare

SemVer Minor

  • Add a control to allow DNS override (#675)
  • Add a control to limit connection reuses (#678)
  • Fail early in HTTPClientResponse.Body.collect(upTo:) if the announced Content-Length is known to exceed the maxBytes in-memory buffer limit. (#672)
  • Replace TransactionBody with NIOAsyncSequenceProducer to support Task cancellation while waiting on the next response body part (#677)

SemVer Patch

  • Fix crash if connection is closed very early (#671)

Other Changes

  • Accept bare 2023 in license header (#676)
  • Fix documentation and add support for CI-ing it (#679)