mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
501 B
Swift
21 lines
501 B
Swift
3 years ago
|
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
||
|
|
||
|
import Foundation
|
||
|
|
||
1 year ago
|
public protocol ResponseInfoType: Decodable {
|
||
3 years ago
|
var code: Int { get }
|
||
|
var headers: [String: String] { get }
|
||
|
}
|
||
|
|
||
1 year ago
|
public extension Network {
|
||
2 years ago
|
struct ResponseInfo: ResponseInfoType {
|
||
3 years ago
|
public let code: Int
|
||
|
public let headers: [String: String]
|
||
|
|
||
11 months ago
|
public init(code: Int, headers: [String: String] = [:]) {
|
||
3 years ago
|
self.code = code
|
||
|
self.headers = headers
|
||
|
}
|
||
|
}
|
||
|
}
|