File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ public extension EndpointService {
124
124
/// - domain: The `domain` associated with this endpoint
125
125
/// - body: The body data to include in the URLRequest
126
126
/// - Returns: The data and response returned for this endpoint request
127
+ @discardableResult
127
128
func perform< E> ( _ endpoint: E ) async throws -> ( Data , HTTPURLResponse )
128
129
where E: EncodableEndpoint , E. Input == Data
129
130
{
@@ -136,6 +137,7 @@ public extension EndpointService {
136
137
/// - domain: The `domain` associated with this endpoint
137
138
/// - body: The encodable body to include in the URLRequest
138
139
/// - Returns: The data and response returned for this endpoint request
140
+ @discardableResult
139
141
func perform< E> ( _ endpoint: E ) async throws -> ( Data , HTTPURLResponse )
140
142
where E: EncodableEndpoint
141
143
{
@@ -147,6 +149,7 @@ public extension EndpointService {
147
149
// MARK: Private
148
150
149
151
private extension EndpointService {
152
+ @discardableResult
150
153
func encode< E: EncodableEndpoint > ( endpoint: E ) throws -> Data {
151
154
do {
152
155
let result = try endpoint. encode ( )
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
3
3
public protocol HeaderKey {
4
- associatedtype Value : CustomStringConvertible
4
+ associatedtype Value : CustomStringConvertible = String
5
5
static var name : String { get }
6
6
}
7
7
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Foundation
2
2
import SwiftUI
3
3
4
4
public protocol QueryKey {
5
- associatedtype Value : CustomStringConvertible
5
+ associatedtype Value : CustomStringConvertible = String
6
6
static var name : String { get }
7
7
}
8
8
You can’t perform that action at this time.
0 commit comments