Skip to content

Commit 08795ea

Browse files
committed
spaces
1 parent ad4f7ea commit 08795ea

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

Sources/AsyncHTTPClient/AsyncAwait/HTTPClientResponse.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ extension HTTPClientResponse {
140140

141141
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
142142
extension HTTPClientResponse {
143-
/// Response body as `ByteBuffer`.
144-
public var bytes: ByteBuffer {
145-
get async throws {
146-
let expectedBytes = headers
147-
.first(name: "content-length")
148-
.flatMap(Int.init) ?? 1024 * 1024
149-
return try await body.collect(upTo: expectedBytes)
150-
}
151-
}
143+
/// Response body as `ByteBuffer`.
144+
public var bytes: ByteBuffer {
145+
get async throws {
146+
let expectedBytes = headers
147+
.first(name: "content-length")
148+
.flatMap(Int.init) ?? 1024 * 1024
149+
return try await body.collect(upTo: expectedBytes)
150+
}
151+
}
152152
}
153153

154154
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)

Sources/AsyncHTTPClient/FoundationExtensions.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ extension HTTPClient.Body {
6767

6868
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
6969
extension HTTPClientResponse {
70-
/// Response body as `Data`.
71-
public var data: Data? {
72-
get async throws {
73-
var bytes = try await bytes
74-
return bytes.readData(length: bytes.readableBytes)
75-
}
76-
}
70+
/// Response body as `Data`.
71+
public var data: Data? {
72+
get async throws {
73+
var bytes = try await bytes
74+
return bytes.readData(length: bytes.readableBytes)
75+
}
76+
}
7777
}

0 commit comments

Comments
 (0)