Comparing 0.1.2...0.1.3 · swift-server/swift-openapi-async-http-client (original) (raw)
Commits on Aug 29, 2023
- Adopt the new shared HTTP client (#13)
Adopt the new shared HTTP client
Motivation
Now that SwiftNIO/AsyncHTTPClient have a singleton variant of the EventLoopGroup
, which allows creating an HTTPClient
without any argument, let's simplify the initializer of the transport to take advantage of it - bringing it in line with the URLSession transport.
Modifications
Default the HTTPClient to a new one with a default event loop group, and remove the mandatory shutdown call.
Result
Adopters can more easily create the AHC transport.
Test Plan
N/A
Reviewed by: dnadoba, glbrntt
Builds:
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
#13
Configuration menu
Browse the repository at this point in the history