You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -255,6 +259,10 @@ private var managerStore = SynchronizedDictionary<String, Alamofire.Session>()
255
259
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class AlamofireDecodableRequestBuilder<T:Decodable>: AlamofireRequestBuilder<T> {
Copy file name to clipboardExpand all lines: templates/swift5/libraries/urlsession/URLSessionImplementations.mustache
+90-8Lines changed: 90 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,11 @@ private var credentialStore = SynchronizedDictionary<Int, URLCredential>()
40
40
*/
41
41
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} var taskDidReceiveChallenge: {{projectName}}ChallengeHandler?
42
42
43
+
/**
44
+
To observe upload or download progress
45
+
*/
46
+
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} var progressObservation: NSKeyValueObservation?
47
+
43
48
/**
44
49
May be assigned if you want to do any of those things:
45
50
- control the task completion
@@ -49,8 +54,8 @@ private var credentialStore = SynchronizedDictionary<Int, URLCredential>()
49
54
@available(*, deprecated, message: "Please override execute() method to intercept and handle errors like authorization or retry the request. Check the Wiki for more info. https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-do-i-implement-bearer-token-authentication-with-urlsession-on-the-swift-api-client")
0 commit comments