What's Changed
Provide AsyncFileStreaming API by @0xTim in #3184
Builds on the work of #2998, #3170 and #3167 to provide a full async streaming API that can be used in Swift Concurrency environments:
- Provides a new
asyncStreamFile(at:chunkSize:mediaType:advancedETagComparison:onCompleted:)
that takes advantage of the full async response streaming- Fixes a number of bugs with the async Response body streaming
FileMiddleware
is now anAsyncMiddleware
- Replaces usages of
FileManager
withNIOFileSystem
apart from in one deprecated API that can’t be async- Correctly marks
XCTVapor
functions asnoasync
where they use.wait()
and provides proper async alternatives
This patch was released by @0xTim
Full Changelog: 4.96.0...4.97.0