File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public enum APIClientError: LocalizedError {
21
21
public struct ParsingError : LocalizedError {
22
22
23
23
/// HTTP Headers.
24
- public let headers : [ String : Any ]
24
+ public let headers : [ String : String ]
25
25
26
26
/// HTTP Status Code.
27
27
public let statusCode : Int
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Foundation
9
9
public struct HTTPResponse < R: Response > {
10
10
11
11
/// HTTP Headers.
12
- public let headers : [ String : Any ]
12
+ public let headers : [ String : String ]
13
13
14
14
/// HTTP Status Code.
15
15
public let statusCode : Int
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ internal struct URLSessionSuccess {
11
11
12
12
internal let statusCode : Int
13
13
14
- internal let headers : [ String : Any ]
14
+ internal let headers : [ String : String ]
15
15
16
16
internal init ( data: Data ? , response: URLResponse ? ) throws {
17
17
guard let data = data,
18
18
let httpResponse = response as? HTTPURLResponse ,
19
- let headers = httpResponse. allHeaderFields as? [ String : Any ] else {
19
+ let headers = httpResponse. allHeaderFields as? [ String : String ] else {
20
20
throw APIClientError . invalidResponse
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments