We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 987d47a commit aa20f38Copy full SHA for aa20f38
Sources/GetExtensions/MultiAPIClientDelegate.swift
@@ -48,4 +48,22 @@ public struct MultiAPIClientDelegate: APIClientDelegate {
48
}
49
return nil
50
51
+
52
+ public func client<T>(_ client: APIClient, encoderForRequest request: Request<T>) -> JSONEncoder? {
53
+ for delegate in delegates {
54
+ if let encoder = delegate.client(client, encoderForRequest: request) {
55
+ return encoder
56
+ }
57
58
+ return nil
59
60
61
+ public func client<T>(_ client: APIClient, decoderForRequest request: Request<T>) -> JSONDecoder? {
62
63
+ if let decoder = delegate.client(client, decoderForRequest: request) {
64
+ return decoder
65
66
67
68
69
0 commit comments