Skip to content

Commit b64d8cb

Browse files
committed
Update default conformances
1 parent d83d0ad commit b64d8cb

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

Sources/ComposableArchitecturePattern/Server+API.swift

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,17 @@ public extension ServerAPI {
6060
return try? self.request(httpMethod)
6161
}
6262

63-
var environment: ServerEnvironment? {
64-
return nil
65-
}
63+
var environment: ServerEnvironment? { nil }
6664

67-
var headers: [String: String]? {
68-
return nil
69-
}
65+
var headers: [String: String]? { nil }
7066

71-
var queries: [URLQueryItem]? {
72-
return nil
73-
}
67+
var queries: [URLQueryItem]? { nil }
7468

75-
var body: Data? {
76-
return nil
77-
}
69+
var body: Data? { nil }
7870

79-
var supportedReturnObjects: [Codable.Type]? {
80-
return nil
81-
}
71+
var supportedReturnObjects: [Codable.Type]? { nil }
72+
73+
var timeoutInterval: TimeInterval { 60 }
8274

8375
func supports<T: Codable>(_ object: T.Type) -> Bool {
8476
return self.supportedReturnObjects?.contains(where: { object == $0 }) ?? false

0 commit comments

Comments
 (0)