Skip to content

[AHC Transport] Async bodies + swift-http-types adoption #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 27, 2023
Prev Previous commit
Next Next commit
Feedback: further cleanup of the HTTPBody API
  • Loading branch information
czechboy0 committed Sep 12, 2023
commit 0a4ad870c924604f06cfd8f8f1947e7a70b79c25
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public struct AsyncHTTPClientTransport: ClientTransport {
}

let body = HTTPBody(
sequence: httpResponse.body.map { HTTPBody.ByteChunk($0.readableBytesView) },
httpResponse.body.map { $0.readableBytesView },
length: length,
iterationBehavior: .single
)
Expand Down