mirror of
https://github.com/zhigang1992/swift-request.git
synced 2026-01-12 22:52:42 +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
|
|
}
|
|
}
|