Skip to content

Commit 2136d2b

Browse files
committed
[response] add missing public init
1 parent 31cca8a commit 2136d2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SimpleHTTP/Response/DataResponse.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import Foundation
33
public struct URLDataResponse {
44
public let data: Data
55
public let response: HTTPURLResponse
6+
7+
public init(data: Data, response: HTTPURLResponse) {
8+
self.data = data
9+
self.response = response
10+
}
611
}
712

813
extension URLDataResponse {

0 commit comments

Comments
 (0)