mirror of
https://github.com/zhigang1992/swift-request.git
synced 2026-04-28 17:25:56 +08:00
12 lines
255 B
Swift
12 lines
255 B
Swift
import Foundation
|
|
|
|
public struct HTTPResponseError: Error {
|
|
public let data: Data
|
|
public let response: HTTPURLResponse
|
|
|
|
public init(data: Data, response: HTTPURLResponse) {
|
|
self.data = data
|
|
self.response = response
|
|
}
|
|
}
|