@identomat-inc/react-native-identomat 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/android/build.gradle +48 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/src/main/AndroidManifest.xml +7 -0
- package/android/src/main/java/com/reactlibrary/BridgeModule.java +86 -0
- package/android/src/main/java/com/reactlibrary/BridgePackage.java +36 -0
- package/index.js +46 -0
- package/ios/Frameworks/identomat.framework/Assets.car +0 -0
- package/ios/Frameworks/identomat.framework/Headers/identomat-Swift.h +638 -0
- package/ios/Frameworks/identomat.framework/Headers/identomat.h +18 -0
- package/ios/Frameworks/identomat.framework/Info.plist +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm.swiftsourceinfo +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/Project/armv7.swiftsourceinfo +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftinterface +1866 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftinterface +1947 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftinterface +1947 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/arm64.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftinterface +1866 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7-apple-ios.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftinterface +1866 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/armv7.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftdoc +0 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftinterface +1947 -0
- package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftmodule +0 -0
- package/ios/Frameworks/identomat.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/3Qb-Zw-Ydv-view-5fQ-xy-n01.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/3Qb-Zw-Ydv-view-5fQ-xy-n01.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Ajy-Ix-fe9-view-G1g-ks-BqP.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Ajy-Ix-fe9-view-G1g-ks-BqP.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/Info.plist +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/RiD-hj-AH5-view-oaZ-g7-pTv.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/RiD-hj-AH5-view-oaZ-g7-pTv.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/VAA-Ss-lbh-view-UDO-8x-V4i.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/VAA-Ss-lbh-view-UDO-8x-V4i.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/YyM-f0-UbG-view-INz-ta-t1c.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/YyM-f0-UbG-view-INz-ta-t1c.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/agreement_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/agreement_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/default_view_controller.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/default_view_controller.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/document_types_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/document_types_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/fQF-H1-pI2-view-oqs-SO-IYK.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/fQF-H1-pI2-view-oqs-SO-IYK.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/liveness_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/liveness_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/match_photo_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/match_photo_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/qkz-dS-cJe-view-KRp-Px-e4R.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/qkz-dS-cJe-view-KRp-Px-e4R.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/scan_document_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/scan_document_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_file_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_file_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_types_view.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/upload_types_view.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/vTZ-J7-KVA-view-nnL-sn-lBz.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/identomat.framework/Storyboard.storyboardc/vTZ-J7-KVA-view-nnL-sn-lBz.nib/runtime.nib +0 -0
- package/ios/Frameworks/identomat.framework/_CodeSignature/CodeResources +1045 -0
- package/ios/Frameworks/identomat.framework/en.lproj/languages.strings +0 -0
- package/ios/Frameworks/identomat.framework/es.lproj/languages.strings +0 -0
- package/ios/Frameworks/identomat.framework/identomat +0 -0
- package/ios/Frameworks/identomat.framework/ka.lproj/languages.strings +0 -0
- package/ios/Frameworks/identomat.framework/ru.lproj/languages.strings +0 -0
- package/ios/Identomat-Bridging-Header.h +7 -0
- package/ios/Identomat.m +26 -0
- package/ios/Identomat.swift +122 -0
- package/ios/Identomat.xcodeproj/project.pbxproj +333 -0
- package/ios/Identomat.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Identomat.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Identomat.xcodeproj/project.xcworkspace/xcuserdata/otosiradze.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Identomat.xcodeproj/xcuserdata/otosiradze.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +6 -0
- package/ios/Identomat.xcodeproj/xcuserdata/otosiradze.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/Identomat.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Identomat.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Identomat.xcworkspace/xcuserdata/otosiradze.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +14 -0
- package/react-native-identomat.podspec +44 -0
- package/windows/RNIdentomat/Properties/AssemblyInfo.cs +30 -0
- package/windows/RNIdentomat/Properties/RNIdentomat.rd.xml +28 -0
- package/windows/RNIdentomat/RNIdentomat.csproj +153 -0
- package/windows/RNIdentomat/RNIdentomatModule.cs +33 -0
- package/windows/RNIdentomat/RNIdentomatPackage.cs +53 -0
- package/windows/RNIdentomat/project.json +16 -0
- package/windows/RNIdentomat.sln +89 -0
package/ios/Frameworks/identomat.framework/Modules/identomat.swiftmodule/x86_64.swiftinterface
ADDED
|
@@ -0,0 +1,1947 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios10.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name identomat
|
|
4
|
+
import AVFoundation
|
|
5
|
+
import AVKit
|
|
6
|
+
import Accelerate
|
|
7
|
+
import Combine
|
|
8
|
+
import CoreImage
|
|
9
|
+
import Dispatch
|
|
10
|
+
import Foundation
|
|
11
|
+
import MobileCoreServices
|
|
12
|
+
import QuartzCore
|
|
13
|
+
import Swift
|
|
14
|
+
import SwiftUI
|
|
15
|
+
import SystemConfiguration
|
|
16
|
+
import UIKit
|
|
17
|
+
@_exported import identomat
|
|
18
|
+
import Accelerate.vImage
|
|
19
|
+
public protocol RequestAdapter {
|
|
20
|
+
func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
|
|
21
|
+
}
|
|
22
|
+
public enum RetryResult {
|
|
23
|
+
case retry
|
|
24
|
+
case retryWithDelay(Foundation.TimeInterval)
|
|
25
|
+
case doNotRetry
|
|
26
|
+
case doNotRetryWithError(Swift.Error)
|
|
27
|
+
}
|
|
28
|
+
public protocol RequestRetrier {
|
|
29
|
+
func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
30
|
+
}
|
|
31
|
+
public protocol RequestInterceptor : identomat.RequestAdapter, identomat.RequestRetrier {
|
|
32
|
+
}
|
|
33
|
+
extension RequestInterceptor {
|
|
34
|
+
public func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
|
|
35
|
+
public func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
36
|
+
}
|
|
37
|
+
public typealias AdaptHandler = (Foundation.URLRequest, identomat.Session, @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void) -> Swift.Void
|
|
38
|
+
public typealias RetryHandler = (identomat.Request, identomat.Session, Swift.Error, @escaping (identomat.RetryResult) -> Swift.Void) -> Swift.Void
|
|
39
|
+
open class Adapter : identomat.RequestInterceptor {
|
|
40
|
+
public init(_ adaptHandler: @escaping identomat.AdaptHandler)
|
|
41
|
+
open func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
|
|
42
|
+
@objc deinit
|
|
43
|
+
}
|
|
44
|
+
open class Retrier : identomat.RequestInterceptor {
|
|
45
|
+
public init(_ retryHandler: @escaping identomat.RetryHandler)
|
|
46
|
+
open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
47
|
+
@objc deinit
|
|
48
|
+
}
|
|
49
|
+
open class Interceptor : identomat.RequestInterceptor {
|
|
50
|
+
final public let adapters: [identomat.RequestAdapter]
|
|
51
|
+
final public let retriers: [identomat.RequestRetrier]
|
|
52
|
+
public init(adaptHandler: @escaping identomat.AdaptHandler, retryHandler: @escaping identomat.RetryHandler)
|
|
53
|
+
public init(adapter: identomat.RequestAdapter, retrier: identomat.RequestRetrier)
|
|
54
|
+
public init(adapters: [identomat.RequestAdapter] = [], retriers: [identomat.RequestRetrier] = [], interceptors: [identomat.RequestInterceptor] = [])
|
|
55
|
+
open func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
|
|
56
|
+
open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
57
|
+
@objc deinit
|
|
58
|
+
}
|
|
59
|
+
@_hasMissingDesignatedInitializers public class Request {
|
|
60
|
+
public enum State {
|
|
61
|
+
case initialized
|
|
62
|
+
case resumed
|
|
63
|
+
case suspended
|
|
64
|
+
case cancelled
|
|
65
|
+
case finished
|
|
66
|
+
public static func == (a: identomat.Request.State, b: identomat.Request.State) -> Swift.Bool
|
|
67
|
+
public var hashValue: Swift.Int {
|
|
68
|
+
get
|
|
69
|
+
}
|
|
70
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
71
|
+
}
|
|
72
|
+
final public let id: Foundation.UUID
|
|
73
|
+
final public let underlyingQueue: Dispatch.DispatchQueue
|
|
74
|
+
final public let serializationQueue: Dispatch.DispatchQueue
|
|
75
|
+
final public let eventMonitor: identomat.EventMonitor?
|
|
76
|
+
final public let interceptor: identomat.RequestInterceptor?
|
|
77
|
+
weak public var delegate: identomat.RequestDelegate? {
|
|
78
|
+
get
|
|
79
|
+
}
|
|
80
|
+
public var state: identomat.Request.State {
|
|
81
|
+
get
|
|
82
|
+
}
|
|
83
|
+
public var isInitialized: Swift.Bool {
|
|
84
|
+
get
|
|
85
|
+
}
|
|
86
|
+
public var isResumed: Swift.Bool {
|
|
87
|
+
get
|
|
88
|
+
}
|
|
89
|
+
public var isSuspended: Swift.Bool {
|
|
90
|
+
get
|
|
91
|
+
}
|
|
92
|
+
public var isCancelled: Swift.Bool {
|
|
93
|
+
get
|
|
94
|
+
}
|
|
95
|
+
public var isFinished: Swift.Bool {
|
|
96
|
+
get
|
|
97
|
+
}
|
|
98
|
+
public typealias ProgressHandler = (Foundation.Progress) -> Swift.Void
|
|
99
|
+
final public let uploadProgress: Foundation.Progress
|
|
100
|
+
final public let downloadProgress: Foundation.Progress
|
|
101
|
+
public var redirectHandler: identomat.RedirectHandler? {
|
|
102
|
+
get
|
|
103
|
+
}
|
|
104
|
+
public var cachedResponseHandler: identomat.CachedResponseHandler? {
|
|
105
|
+
get
|
|
106
|
+
}
|
|
107
|
+
public var credential: Foundation.URLCredential? {
|
|
108
|
+
get
|
|
109
|
+
}
|
|
110
|
+
public var requests: [Foundation.URLRequest] {
|
|
111
|
+
get
|
|
112
|
+
}
|
|
113
|
+
public var firstRequest: Foundation.URLRequest? {
|
|
114
|
+
get
|
|
115
|
+
}
|
|
116
|
+
public var lastRequest: Foundation.URLRequest? {
|
|
117
|
+
get
|
|
118
|
+
}
|
|
119
|
+
public var request: Foundation.URLRequest? {
|
|
120
|
+
get
|
|
121
|
+
}
|
|
122
|
+
public var performedRequests: [Foundation.URLRequest] {
|
|
123
|
+
get
|
|
124
|
+
}
|
|
125
|
+
public var response: Foundation.HTTPURLResponse? {
|
|
126
|
+
get
|
|
127
|
+
}
|
|
128
|
+
public var tasks: [Foundation.URLSessionTask] {
|
|
129
|
+
get
|
|
130
|
+
}
|
|
131
|
+
public var firstTask: Foundation.URLSessionTask? {
|
|
132
|
+
get
|
|
133
|
+
}
|
|
134
|
+
public var lastTask: Foundation.URLSessionTask? {
|
|
135
|
+
get
|
|
136
|
+
}
|
|
137
|
+
public var task: Foundation.URLSessionTask? {
|
|
138
|
+
get
|
|
139
|
+
}
|
|
140
|
+
public var allMetrics: [Foundation.URLSessionTaskMetrics] {
|
|
141
|
+
get
|
|
142
|
+
}
|
|
143
|
+
public var firstMetrics: Foundation.URLSessionTaskMetrics? {
|
|
144
|
+
get
|
|
145
|
+
}
|
|
146
|
+
public var lastMetrics: Foundation.URLSessionTaskMetrics? {
|
|
147
|
+
get
|
|
148
|
+
}
|
|
149
|
+
public var metrics: Foundation.URLSessionTaskMetrics? {
|
|
150
|
+
get
|
|
151
|
+
}
|
|
152
|
+
public var retryCount: Swift.Int {
|
|
153
|
+
get
|
|
154
|
+
}
|
|
155
|
+
public var error: identomat.AFError? {
|
|
156
|
+
get
|
|
157
|
+
}
|
|
158
|
+
@discardableResult
|
|
159
|
+
public func cancel() -> Self
|
|
160
|
+
@discardableResult
|
|
161
|
+
public func suspend() -> Self
|
|
162
|
+
@discardableResult
|
|
163
|
+
public func resume() -> Self
|
|
164
|
+
@discardableResult
|
|
165
|
+
public func authenticate(username: Swift.String, password: Swift.String, persistence: Foundation.URLCredential.Persistence = .forSession) -> Self
|
|
166
|
+
@discardableResult
|
|
167
|
+
public func authenticate(with credential: Foundation.URLCredential) -> Self
|
|
168
|
+
@discardableResult
|
|
169
|
+
public func downloadProgress(queue: Dispatch.DispatchQueue = .main, closure: @escaping identomat.Request.ProgressHandler) -> Self
|
|
170
|
+
@discardableResult
|
|
171
|
+
public func uploadProgress(queue: Dispatch.DispatchQueue = .main, closure: @escaping identomat.Request.ProgressHandler) -> Self
|
|
172
|
+
@discardableResult
|
|
173
|
+
public func redirect(using handler: identomat.RedirectHandler) -> Self
|
|
174
|
+
@discardableResult
|
|
175
|
+
public func cacheResponse(using handler: identomat.CachedResponseHandler) -> Self
|
|
176
|
+
@discardableResult
|
|
177
|
+
public func cURLDescription(on queue: Dispatch.DispatchQueue, calling handler: @escaping (Swift.String) -> Swift.Void) -> Self
|
|
178
|
+
@discardableResult
|
|
179
|
+
public func cURLDescription(calling handler: @escaping (Swift.String) -> Swift.Void) -> Self
|
|
180
|
+
@discardableResult
|
|
181
|
+
public func onURLRequestCreation(on queue: Dispatch.DispatchQueue = .main, perform handler: @escaping (Foundation.URLRequest) -> Swift.Void) -> Self
|
|
182
|
+
@discardableResult
|
|
183
|
+
public func onURLSessionTaskCreation(on queue: Dispatch.DispatchQueue = .main, perform handler: @escaping (Foundation.URLSessionTask) -> Swift.Void) -> Self
|
|
184
|
+
@objc deinit
|
|
185
|
+
}
|
|
186
|
+
extension Request : Swift.Equatable {
|
|
187
|
+
public static func == (lhs: identomat.Request, rhs: identomat.Request) -> Swift.Bool
|
|
188
|
+
}
|
|
189
|
+
extension Request : Swift.Hashable {
|
|
190
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
191
|
+
public var hashValue: Swift.Int {
|
|
192
|
+
get
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
extension Request : Swift.CustomStringConvertible {
|
|
196
|
+
public var description: Swift.String {
|
|
197
|
+
get
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
extension Request {
|
|
201
|
+
public func cURLDescription() -> Swift.String
|
|
202
|
+
}
|
|
203
|
+
public protocol RequestDelegate : AnyObject {
|
|
204
|
+
var sessionConfiguration: Foundation.URLSessionConfiguration { get }
|
|
205
|
+
var startImmediately: Swift.Bool { get }
|
|
206
|
+
func cleanup(after request: identomat.Request)
|
|
207
|
+
func retryResult(for request: identomat.Request, dueTo error: identomat.AFError, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
208
|
+
func retryRequest(_ request: identomat.Request, withDelay timeDelay: Foundation.TimeInterval?)
|
|
209
|
+
}
|
|
210
|
+
@_hasMissingDesignatedInitializers public class DataRequest : identomat.Request {
|
|
211
|
+
final public let convertible: identomat.URLRequestConvertible
|
|
212
|
+
public var data: Foundation.Data? {
|
|
213
|
+
get
|
|
214
|
+
}
|
|
215
|
+
@discardableResult
|
|
216
|
+
public func validate(_ validation: @escaping identomat.DataRequest.Validation) -> Self
|
|
217
|
+
@objc deinit
|
|
218
|
+
}
|
|
219
|
+
@_hasMissingDesignatedInitializers final public class DataStreamRequest : identomat.Request {
|
|
220
|
+
public typealias Handler<Success, Failure> = (identomat.DataStreamRequest.Stream<Success, Failure>) throws -> Swift.Void where Failure : Swift.Error
|
|
221
|
+
public struct Stream<Success, Failure> where Failure : Swift.Error {
|
|
222
|
+
public let event: identomat.DataStreamRequest.Event<Success, Failure>
|
|
223
|
+
public let token: identomat.DataStreamRequest.CancellationToken
|
|
224
|
+
public func cancel()
|
|
225
|
+
}
|
|
226
|
+
public enum Event<Success, Failure> where Failure : Swift.Error {
|
|
227
|
+
case stream(Swift.Result<Success, Failure>)
|
|
228
|
+
case complete(identomat.DataStreamRequest.Completion)
|
|
229
|
+
}
|
|
230
|
+
public struct Completion {
|
|
231
|
+
public let request: Foundation.URLRequest?
|
|
232
|
+
public let response: Foundation.HTTPURLResponse?
|
|
233
|
+
public let metrics: Foundation.URLSessionTaskMetrics?
|
|
234
|
+
public let error: identomat.AFError?
|
|
235
|
+
}
|
|
236
|
+
public struct CancellationToken {
|
|
237
|
+
public func cancel()
|
|
238
|
+
}
|
|
239
|
+
final public let convertible: identomat.URLRequestConvertible
|
|
240
|
+
final public let automaticallyCancelOnStreamError: Swift.Bool
|
|
241
|
+
@discardableResult
|
|
242
|
+
final public func validate(_ validation: @escaping identomat.DataStreamRequest.Validation) -> Self
|
|
243
|
+
final public func asInputStream(bufferSize: Swift.Int = 1024) -> Foundation.InputStream?
|
|
244
|
+
@objc deinit
|
|
245
|
+
}
|
|
246
|
+
extension DataStreamRequest.Stream {
|
|
247
|
+
public var result: Swift.Result<Success, Failure>? {
|
|
248
|
+
get
|
|
249
|
+
}
|
|
250
|
+
public var value: Success? {
|
|
251
|
+
get
|
|
252
|
+
}
|
|
253
|
+
public var error: Failure? {
|
|
254
|
+
get
|
|
255
|
+
}
|
|
256
|
+
public var completion: identomat.DataStreamRequest.Completion? {
|
|
257
|
+
get
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
@_hasMissingDesignatedInitializers public class DownloadRequest : identomat.Request {
|
|
261
|
+
public struct Options : Swift.OptionSet {
|
|
262
|
+
public static var createIntermediateDirectories: identomat.DownloadRequest.Options
|
|
263
|
+
public static var removePreviousFile: identomat.DownloadRequest.Options
|
|
264
|
+
public let rawValue: Swift.Int
|
|
265
|
+
public init(rawValue: Swift.Int)
|
|
266
|
+
public typealias Element = identomat.DownloadRequest.Options
|
|
267
|
+
public typealias ArrayLiteralElement = identomat.DownloadRequest.Options
|
|
268
|
+
public typealias RawValue = Swift.Int
|
|
269
|
+
}
|
|
270
|
+
public typealias Destination = (Foundation.URL, Foundation.HTTPURLResponse) -> (destinationURL: Foundation.URL, options: identomat.DownloadRequest.Options)
|
|
271
|
+
public class func suggestedDownloadDestination(for directory: Foundation.FileManager.SearchPathDirectory = .documentDirectory, in domain: Foundation.FileManager.SearchPathDomainMask = .userDomainMask, options: identomat.DownloadRequest.Options = []) -> identomat.DownloadRequest.Destination
|
|
272
|
+
public enum Downloadable {
|
|
273
|
+
case request(identomat.URLRequestConvertible)
|
|
274
|
+
case resumeData(Foundation.Data)
|
|
275
|
+
}
|
|
276
|
+
public var resumeData: Foundation.Data? {
|
|
277
|
+
get
|
|
278
|
+
}
|
|
279
|
+
public var fileURL: Foundation.URL? {
|
|
280
|
+
get
|
|
281
|
+
}
|
|
282
|
+
final public let downloadable: identomat.DownloadRequest.Downloadable
|
|
283
|
+
public func task(forResumeData data: Foundation.Data, using session: Foundation.URLSession) -> Foundation.URLSessionTask
|
|
284
|
+
@discardableResult
|
|
285
|
+
override public func cancel() -> Self
|
|
286
|
+
@discardableResult
|
|
287
|
+
public func cancel(producingResumeData shouldProduceResumeData: Swift.Bool) -> Self
|
|
288
|
+
@discardableResult
|
|
289
|
+
public func cancel(byProducingResumeData completionHandler: @escaping (Foundation.Data?) -> Swift.Void) -> Self
|
|
290
|
+
@discardableResult
|
|
291
|
+
public func validate(_ validation: @escaping identomat.DownloadRequest.Validation) -> Self
|
|
292
|
+
@objc deinit
|
|
293
|
+
}
|
|
294
|
+
@_hasMissingDesignatedInitializers public class UploadRequest : identomat.DataRequest {
|
|
295
|
+
public enum Uploadable {
|
|
296
|
+
case data(Foundation.Data)
|
|
297
|
+
case file(Foundation.URL, shouldRemove: Swift.Bool)
|
|
298
|
+
case stream(Foundation.InputStream)
|
|
299
|
+
}
|
|
300
|
+
final public let upload: identomat.UploadableConvertible
|
|
301
|
+
final public let fileManager: Foundation.FileManager
|
|
302
|
+
public var uploadable: identomat.UploadRequest.Uploadable?
|
|
303
|
+
public func cleanup()
|
|
304
|
+
@objc deinit
|
|
305
|
+
}
|
|
306
|
+
public protocol UploadableConvertible {
|
|
307
|
+
func createUploadable() throws -> identomat.UploadRequest.Uploadable
|
|
308
|
+
}
|
|
309
|
+
extension UploadRequest.Uploadable : identomat.UploadableConvertible {
|
|
310
|
+
public func createUploadable() throws -> identomat.UploadRequest.Uploadable
|
|
311
|
+
}
|
|
312
|
+
public protocol UploadConvertible : identomat.URLRequestConvertible, identomat.UploadableConvertible {
|
|
313
|
+
}
|
|
314
|
+
public typealias AFResult<Success> = Swift.Result<Success, identomat.AFError>
|
|
315
|
+
public protocol RedirectHandler {
|
|
316
|
+
func task(_ task: Foundation.URLSessionTask, willBeRedirectedTo request: Foundation.URLRequest, for response: Foundation.HTTPURLResponse, completion: @escaping (Foundation.URLRequest?) -> Swift.Void)
|
|
317
|
+
}
|
|
318
|
+
public struct Redirector {
|
|
319
|
+
public enum Behavior {
|
|
320
|
+
case follow
|
|
321
|
+
case doNotFollow
|
|
322
|
+
case modify((Foundation.URLSessionTask, Foundation.URLRequest, Foundation.HTTPURLResponse) -> Foundation.URLRequest?)
|
|
323
|
+
}
|
|
324
|
+
public static var follow: identomat.Redirector
|
|
325
|
+
public static var doNotFollow: identomat.Redirector
|
|
326
|
+
public let behavior: identomat.Redirector.Behavior
|
|
327
|
+
public init(behavior: identomat.Redirector.Behavior)
|
|
328
|
+
}
|
|
329
|
+
extension Redirector : identomat.RedirectHandler {
|
|
330
|
+
public func task(_ task: Foundation.URLSessionTask, willBeRedirectedTo request: Foundation.URLRequest, for response: Foundation.HTTPURLResponse, completion: @escaping (Foundation.URLRequest?) -> Swift.Void)
|
|
331
|
+
}
|
|
332
|
+
public typealias AFDataResponse<Success> = identomat.DataResponse<Success, identomat.AFError>
|
|
333
|
+
public typealias AFDownloadResponse<Success> = identomat.DownloadResponse<Success, identomat.AFError>
|
|
334
|
+
public struct DataResponse<Success, Failure> where Failure : Swift.Error {
|
|
335
|
+
public let request: Foundation.URLRequest?
|
|
336
|
+
public let response: Foundation.HTTPURLResponse?
|
|
337
|
+
public let data: Foundation.Data?
|
|
338
|
+
public let metrics: Foundation.URLSessionTaskMetrics?
|
|
339
|
+
public let serializationDuration: Foundation.TimeInterval
|
|
340
|
+
public let result: Swift.Result<Success, Failure>
|
|
341
|
+
public var value: Success? {
|
|
342
|
+
get
|
|
343
|
+
}
|
|
344
|
+
public var error: Failure? {
|
|
345
|
+
get
|
|
346
|
+
}
|
|
347
|
+
public init(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, metrics: Foundation.URLSessionTaskMetrics?, serializationDuration: Foundation.TimeInterval, result: Swift.Result<Success, Failure>)
|
|
348
|
+
}
|
|
349
|
+
extension DataResponse : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
|
350
|
+
public var description: Swift.String {
|
|
351
|
+
get
|
|
352
|
+
}
|
|
353
|
+
public var debugDescription: Swift.String {
|
|
354
|
+
get
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
extension DataResponse {
|
|
358
|
+
public func map<NewSuccess>(_ transform: (Success) -> NewSuccess) -> identomat.DataResponse<NewSuccess, Failure>
|
|
359
|
+
public func tryMap<NewSuccess>(_ transform: (Success) throws -> NewSuccess) -> identomat.DataResponse<NewSuccess, Swift.Error>
|
|
360
|
+
public func mapError<NewFailure>(_ transform: (Failure) -> NewFailure) -> identomat.DataResponse<Success, NewFailure> where NewFailure : Swift.Error
|
|
361
|
+
public func tryMapError<NewFailure>(_ transform: (Failure) throws -> NewFailure) -> identomat.DataResponse<Success, Swift.Error> where NewFailure : Swift.Error
|
|
362
|
+
}
|
|
363
|
+
public struct DownloadResponse<Success, Failure> where Failure : Swift.Error {
|
|
364
|
+
public let request: Foundation.URLRequest?
|
|
365
|
+
public let response: Foundation.HTTPURLResponse?
|
|
366
|
+
public let fileURL: Foundation.URL?
|
|
367
|
+
public let resumeData: Foundation.Data?
|
|
368
|
+
public let metrics: Foundation.URLSessionTaskMetrics?
|
|
369
|
+
public let serializationDuration: Foundation.TimeInterval
|
|
370
|
+
public let result: Swift.Result<Success, Failure>
|
|
371
|
+
public var value: Success? {
|
|
372
|
+
get
|
|
373
|
+
}
|
|
374
|
+
public var error: Failure? {
|
|
375
|
+
get
|
|
376
|
+
}
|
|
377
|
+
public init(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, resumeData: Foundation.Data?, metrics: Foundation.URLSessionTaskMetrics?, serializationDuration: Foundation.TimeInterval, result: Swift.Result<Success, Failure>)
|
|
378
|
+
}
|
|
379
|
+
extension DownloadResponse : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
|
380
|
+
public var description: Swift.String {
|
|
381
|
+
get
|
|
382
|
+
}
|
|
383
|
+
public var debugDescription: Swift.String {
|
|
384
|
+
get
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
extension DownloadResponse {
|
|
388
|
+
public func map<NewSuccess>(_ transform: (Success) -> NewSuccess) -> identomat.DownloadResponse<NewSuccess, Failure>
|
|
389
|
+
public func tryMap<NewSuccess>(_ transform: (Success) throws -> NewSuccess) -> identomat.DownloadResponse<NewSuccess, Swift.Error>
|
|
390
|
+
public func mapError<NewFailure>(_ transform: (Failure) -> NewFailure) -> identomat.DownloadResponse<Success, NewFailure> where NewFailure : Swift.Error
|
|
391
|
+
public func tryMapError<NewFailure>(_ transform: (Failure) throws -> NewFailure) -> identomat.DownloadResponse<Success, Swift.Error> where NewFailure : Swift.Error
|
|
392
|
+
}
|
|
393
|
+
extension URLRequest {
|
|
394
|
+
public var method: identomat.HTTPMethod? {
|
|
395
|
+
get
|
|
396
|
+
set(newValue)
|
|
397
|
+
}
|
|
398
|
+
public func validate() throws
|
|
399
|
+
}
|
|
400
|
+
public var AF: identomat.Session
|
|
401
|
+
open class Session {
|
|
402
|
+
public static var `default`: identomat.Session
|
|
403
|
+
final public let session: Foundation.URLSession
|
|
404
|
+
final public let delegate: identomat.SessionDelegate
|
|
405
|
+
final public let rootQueue: Dispatch.DispatchQueue
|
|
406
|
+
final public let startRequestsImmediately: Swift.Bool
|
|
407
|
+
final public let requestQueue: Dispatch.DispatchQueue
|
|
408
|
+
final public let serializationQueue: Dispatch.DispatchQueue
|
|
409
|
+
final public let interceptor: identomat.RequestInterceptor?
|
|
410
|
+
final public let serverTrustManager: identomat.ServerTrustManager?
|
|
411
|
+
final public let redirectHandler: identomat.RedirectHandler?
|
|
412
|
+
final public let cachedResponseHandler: identomat.CachedResponseHandler?
|
|
413
|
+
final public let eventMonitor: identomat.CompositeEventMonitor
|
|
414
|
+
final public let defaultEventMonitors: [identomat.EventMonitor]
|
|
415
|
+
public init(session: Foundation.URLSession, delegate: identomat.SessionDelegate, rootQueue: Dispatch.DispatchQueue, startRequestsImmediately: Swift.Bool = true, requestQueue: Dispatch.DispatchQueue? = nil, serializationQueue: Dispatch.DispatchQueue? = nil, interceptor: identomat.RequestInterceptor? = nil, serverTrustManager: identomat.ServerTrustManager? = nil, redirectHandler: identomat.RedirectHandler? = nil, cachedResponseHandler: identomat.CachedResponseHandler? = nil, eventMonitors: [identomat.EventMonitor] = [])
|
|
416
|
+
public convenience init(configuration: Foundation.URLSessionConfiguration = URLSessionConfiguration.af.default, delegate: identomat.SessionDelegate = SessionDelegate(), rootQueue: Dispatch.DispatchQueue = DispatchQueue(label: "org.alamofire.session.rootQueue"), startRequestsImmediately: Swift.Bool = true, requestQueue: Dispatch.DispatchQueue? = nil, serializationQueue: Dispatch.DispatchQueue? = nil, interceptor: identomat.RequestInterceptor? = nil, serverTrustManager: identomat.ServerTrustManager? = nil, redirectHandler: identomat.RedirectHandler? = nil, cachedResponseHandler: identomat.CachedResponseHandler? = nil, eventMonitors: [identomat.EventMonitor] = [])
|
|
417
|
+
@objc deinit
|
|
418
|
+
public func withAllRequests(perform action: @escaping (Swift.Set<identomat.Request>) -> Swift.Void)
|
|
419
|
+
public func cancelAllRequests(completingOnQueue queue: Dispatch.DispatchQueue = .main, completion: (() -> Swift.Void)? = nil)
|
|
420
|
+
public typealias RequestModifier = (inout Foundation.URLRequest) throws -> Swift.Void
|
|
421
|
+
open func request(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: identomat.Parameters? = nil, encoding: identomat.ParameterEncoding = URLEncoding.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataRequest
|
|
422
|
+
open func request<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataRequest where Parameters : Swift.Encodable
|
|
423
|
+
open func request(_ convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil) -> identomat.DataRequest
|
|
424
|
+
open func streamRequest<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataStreamRequest where Parameters : Swift.Encodable
|
|
425
|
+
open func streamRequest(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, headers: identomat.HTTPHeaders? = nil, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.DataStreamRequest
|
|
426
|
+
open func streamRequest(_ convertible: identomat.URLRequestConvertible, automaticallyCancelOnStreamError: Swift.Bool = false, interceptor: identomat.RequestInterceptor? = nil) -> identomat.DataStreamRequest
|
|
427
|
+
open func download(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: identomat.Parameters? = nil, encoding: identomat.ParameterEncoding = URLEncoding.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
|
|
428
|
+
open func download<Parameters>(_ convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .get, parameters: Parameters? = nil, encoder: identomat.ParameterEncoder = URLEncodedFormParameterEncoder.default, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, requestModifier: identomat.Session.RequestModifier? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest where Parameters : Swift.Encodable
|
|
429
|
+
open func download(_ convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
|
|
430
|
+
open func download(resumingWith data: Foundation.Data, interceptor: identomat.RequestInterceptor? = nil, to destination: identomat.DownloadRequest.Destination? = nil) -> identomat.DownloadRequest
|
|
431
|
+
open func upload(_ data: Foundation.Data, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
|
|
432
|
+
open func upload(_ data: Foundation.Data, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
|
|
433
|
+
open func upload(_ fileURL: Foundation.URL, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
|
|
434
|
+
open func upload(_ fileURL: Foundation.URL, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
|
|
435
|
+
open func upload(_ stream: Foundation.InputStream, to convertible: identomat.URLConvertible, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
|
|
436
|
+
open func upload(_ stream: Foundation.InputStream, with convertible: identomat.URLRequestConvertible, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
|
|
437
|
+
open func upload(multipartFormData: @escaping (identomat.MultipartFormData) -> Swift.Void, to url: identomat.URLConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
|
|
438
|
+
open func upload(multipartFormData: @escaping (identomat.MultipartFormData) -> Swift.Void, with request: identomat.URLRequestConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
|
|
439
|
+
open func upload(multipartFormData: identomat.MultipartFormData, to url: identomat.URLConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, method: identomat.HTTPMethod = .post, headers: identomat.HTTPHeaders? = nil, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default, requestModifier: identomat.Session.RequestModifier? = nil) -> identomat.UploadRequest
|
|
440
|
+
open func upload(multipartFormData: identomat.MultipartFormData, with request: identomat.URLRequestConvertible, usingThreshold encodingMemoryThreshold: Swift.UInt64 = MultipartFormData.encodingMemoryThreshold, interceptor: identomat.RequestInterceptor? = nil, fileManager: Foundation.FileManager = .default) -> identomat.UploadRequest
|
|
441
|
+
}
|
|
442
|
+
extension Session : identomat.RequestDelegate {
|
|
443
|
+
public var sessionConfiguration: Foundation.URLSessionConfiguration {
|
|
444
|
+
get
|
|
445
|
+
}
|
|
446
|
+
public var startImmediately: Swift.Bool {
|
|
447
|
+
get
|
|
448
|
+
}
|
|
449
|
+
public func cleanup(after request: identomat.Request)
|
|
450
|
+
public func retryResult(for request: identomat.Request, dueTo error: identomat.AFError, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
451
|
+
public func retryRequest(_ request: identomat.Request, withDelay timeDelay: Foundation.TimeInterval?)
|
|
452
|
+
}
|
|
453
|
+
open class MultipartFormData {
|
|
454
|
+
public static var encodingMemoryThreshold: Swift.UInt64
|
|
455
|
+
open var contentType: Swift.String {
|
|
456
|
+
get
|
|
457
|
+
set(value)
|
|
458
|
+
}
|
|
459
|
+
public var contentLength: Swift.UInt64 {
|
|
460
|
+
get
|
|
461
|
+
}
|
|
462
|
+
final public let boundary: Swift.String
|
|
463
|
+
public init(fileManager: Foundation.FileManager = .default, boundary: Swift.String? = nil)
|
|
464
|
+
public func append(_ data: Foundation.Data, withName name: Swift.String, fileName: Swift.String? = nil, mimeType: Swift.String? = nil)
|
|
465
|
+
public func append(_ fileURL: Foundation.URL, withName name: Swift.String)
|
|
466
|
+
public func append(_ fileURL: Foundation.URL, withName name: Swift.String, fileName: Swift.String, mimeType: Swift.String)
|
|
467
|
+
public func append(_ stream: Foundation.InputStream, withLength length: Swift.UInt64, name: Swift.String, fileName: Swift.String, mimeType: Swift.String)
|
|
468
|
+
public func append(_ stream: Foundation.InputStream, withLength length: Swift.UInt64, headers: identomat.HTTPHeaders)
|
|
469
|
+
public func encode() throws -> Foundation.Data
|
|
470
|
+
public func writeEncodedData(to fileURL: Foundation.URL) throws
|
|
471
|
+
@objc deinit
|
|
472
|
+
}
|
|
473
|
+
extension URLSessionConfiguration : identomat.AlamofireExtended {
|
|
474
|
+
public typealias ExtendedType = Foundation.URLSessionConfiguration
|
|
475
|
+
}
|
|
476
|
+
extension AlamofireExtension where ExtendedType : Foundation.URLSessionConfiguration {
|
|
477
|
+
public static var `default`: Foundation.URLSessionConfiguration {
|
|
478
|
+
get
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
public protocol AuthenticationCredential {
|
|
482
|
+
var requiresRefresh: Swift.Bool { get }
|
|
483
|
+
}
|
|
484
|
+
public protocol Authenticator : AnyObject {
|
|
485
|
+
associatedtype Credential : identomat.AuthenticationCredential
|
|
486
|
+
func apply(_ credential: Self.Credential, to urlRequest: inout Foundation.URLRequest)
|
|
487
|
+
func refresh(_ credential: Self.Credential, for session: identomat.Session, completion: @escaping (Swift.Result<Self.Credential, Swift.Error>) -> Swift.Void)
|
|
488
|
+
func didRequest(_ urlRequest: Foundation.URLRequest, with response: Foundation.HTTPURLResponse, failDueToAuthenticationError error: Swift.Error) -> Swift.Bool
|
|
489
|
+
func isRequest(_ urlRequest: Foundation.URLRequest, authenticatedWith credential: Self.Credential) -> Swift.Bool
|
|
490
|
+
}
|
|
491
|
+
public enum AuthenticationError : Swift.Error {
|
|
492
|
+
case missingCredential
|
|
493
|
+
case excessiveRefresh
|
|
494
|
+
public static func == (a: identomat.AuthenticationError, b: identomat.AuthenticationError) -> Swift.Bool
|
|
495
|
+
public var hashValue: Swift.Int {
|
|
496
|
+
get
|
|
497
|
+
}
|
|
498
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
499
|
+
}
|
|
500
|
+
public class AuthenticationInterceptor<AuthenticatorType> : identomat.RequestInterceptor where AuthenticatorType : identomat.Authenticator {
|
|
501
|
+
public typealias Credential = AuthenticatorType.Credential
|
|
502
|
+
public struct RefreshWindow {
|
|
503
|
+
public let interval: Foundation.TimeInterval
|
|
504
|
+
public let maximumAttempts: Swift.Int
|
|
505
|
+
public init(interval: Foundation.TimeInterval = 30.0, maximumAttempts: Swift.Int = 5)
|
|
506
|
+
}
|
|
507
|
+
public var credential: identomat.AuthenticationInterceptor<AuthenticatorType>.Credential? {
|
|
508
|
+
get
|
|
509
|
+
set(newValue)
|
|
510
|
+
}
|
|
511
|
+
public init(authenticator: AuthenticatorType, credential: identomat.AuthenticationInterceptor<AuthenticatorType>.Credential? = nil, refreshWindow: identomat.AuthenticationInterceptor<AuthenticatorType>.RefreshWindow? = RefreshWindow())
|
|
512
|
+
public func adapt(_ urlRequest: Foundation.URLRequest, for session: identomat.Session, completion: @escaping (Swift.Result<Foundation.URLRequest, Swift.Error>) -> Swift.Void)
|
|
513
|
+
public func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
514
|
+
@objc deinit
|
|
515
|
+
}
|
|
516
|
+
extension Request {
|
|
517
|
+
public typealias ValidationResult = Swift.Result<Swift.Void, Swift.Error>
|
|
518
|
+
}
|
|
519
|
+
extension DataRequest {
|
|
520
|
+
public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.Data?) -> identomat.DataRequest.ValidationResult
|
|
521
|
+
@discardableResult
|
|
522
|
+
public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
|
|
523
|
+
@discardableResult
|
|
524
|
+
public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
|
|
525
|
+
@discardableResult
|
|
526
|
+
public func validate() -> Self
|
|
527
|
+
}
|
|
528
|
+
extension DataStreamRequest {
|
|
529
|
+
public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse) -> identomat.DataStreamRequest.ValidationResult
|
|
530
|
+
@discardableResult
|
|
531
|
+
final public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
|
|
532
|
+
@discardableResult
|
|
533
|
+
final public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
|
|
534
|
+
@discardableResult
|
|
535
|
+
final public func validate() -> Self
|
|
536
|
+
}
|
|
537
|
+
extension DownloadRequest {
|
|
538
|
+
public typealias Validation = (Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.URL?) -> identomat.DownloadRequest.ValidationResult
|
|
539
|
+
@discardableResult
|
|
540
|
+
public func validate<S>(statusCode acceptableStatusCodes: S) -> Self where S : Swift.Sequence, S.Element == Swift.Int
|
|
541
|
+
@discardableResult
|
|
542
|
+
public func validate<S>(contentType acceptableContentTypes: @autoclosure @escaping () -> S) -> Self where S : Swift.Sequence, S.Element == Swift.String
|
|
543
|
+
@discardableResult
|
|
544
|
+
public func validate() -> Self
|
|
545
|
+
}
|
|
546
|
+
public protocol EventMonitor {
|
|
547
|
+
var queue: Dispatch.DispatchQueue { get }
|
|
548
|
+
func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
|
|
549
|
+
func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
|
|
550
|
+
func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
|
|
551
|
+
func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
|
|
552
|
+
func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
|
|
553
|
+
func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
|
|
554
|
+
func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
|
|
555
|
+
@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
|
|
556
|
+
func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
|
|
557
|
+
func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
|
|
558
|
+
func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
|
|
559
|
+
func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
|
|
560
|
+
func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
|
|
561
|
+
func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
|
|
562
|
+
func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
|
|
563
|
+
func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
|
|
564
|
+
func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
|
|
565
|
+
func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
|
|
566
|
+
func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
|
|
567
|
+
func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
|
|
568
|
+
func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
|
|
569
|
+
func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
|
|
570
|
+
func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
|
|
571
|
+
func requestIsRetrying(_ request: identomat.Request)
|
|
572
|
+
func requestDidFinish(_ request: identomat.Request)
|
|
573
|
+
func requestDidResume(_ request: identomat.Request)
|
|
574
|
+
func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
|
|
575
|
+
func requestDidSuspend(_ request: identomat.Request)
|
|
576
|
+
func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
|
|
577
|
+
func requestDidCancel(_ request: identomat.Request)
|
|
578
|
+
func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
|
|
579
|
+
func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
|
|
580
|
+
func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
|
|
581
|
+
func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
|
|
582
|
+
func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
|
|
583
|
+
func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
|
|
584
|
+
func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
|
|
585
|
+
func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
|
|
586
|
+
func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
|
|
587
|
+
func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
|
|
588
|
+
func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
|
|
589
|
+
func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
|
|
590
|
+
func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
|
|
591
|
+
func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
|
|
592
|
+
}
|
|
593
|
+
extension EventMonitor {
|
|
594
|
+
public var queue: Dispatch.DispatchQueue {
|
|
595
|
+
get
|
|
596
|
+
}
|
|
597
|
+
public func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
|
|
598
|
+
public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
|
|
599
|
+
public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
|
|
600
|
+
public func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
|
|
601
|
+
public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
|
|
602
|
+
public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
|
|
603
|
+
public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
|
|
604
|
+
public func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
|
|
605
|
+
public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
|
|
606
|
+
public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
|
|
607
|
+
public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
|
|
608
|
+
public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
|
|
609
|
+
public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
|
|
610
|
+
public func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
|
|
611
|
+
public func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
|
|
612
|
+
public func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
|
|
613
|
+
public func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
|
|
614
|
+
public func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
|
|
615
|
+
public func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
|
|
616
|
+
public func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
|
|
617
|
+
public func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
|
|
618
|
+
public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
|
|
619
|
+
public func requestIsRetrying(_ request: identomat.Request)
|
|
620
|
+
public func requestDidFinish(_ request: identomat.Request)
|
|
621
|
+
public func requestDidResume(_ request: identomat.Request)
|
|
622
|
+
public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
|
|
623
|
+
public func requestDidSuspend(_ request: identomat.Request)
|
|
624
|
+
public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
|
|
625
|
+
public func requestDidCancel(_ request: identomat.Request)
|
|
626
|
+
public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
|
|
627
|
+
public func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
|
|
628
|
+
public func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
|
|
629
|
+
public func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
|
|
630
|
+
public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
|
|
631
|
+
public func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
|
|
632
|
+
public func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
|
|
633
|
+
public func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
|
|
634
|
+
public func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
|
|
635
|
+
public func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
|
|
636
|
+
public func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
|
|
637
|
+
public func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
|
|
638
|
+
public func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
|
|
639
|
+
public func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
|
|
640
|
+
}
|
|
641
|
+
@_hasMissingDesignatedInitializers final public class CompositeEventMonitor : identomat.EventMonitor {
|
|
642
|
+
final public let queue: Dispatch.DispatchQueue
|
|
643
|
+
final public func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
|
|
644
|
+
final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
|
|
645
|
+
final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
|
|
646
|
+
final public func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
|
|
647
|
+
final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
|
|
648
|
+
final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
|
|
649
|
+
final public func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
|
|
650
|
+
@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
|
|
651
|
+
final public func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
|
|
652
|
+
final public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
|
|
653
|
+
final public func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
|
|
654
|
+
final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
|
|
655
|
+
final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
|
|
656
|
+
final public func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
|
|
657
|
+
final public func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
|
|
658
|
+
final public func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
|
|
659
|
+
final public func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
|
|
660
|
+
final public func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
|
|
661
|
+
final public func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
|
|
662
|
+
final public func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
|
|
663
|
+
final public func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
|
|
664
|
+
final public func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
|
|
665
|
+
final public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
|
|
666
|
+
final public func requestIsRetrying(_ request: identomat.Request)
|
|
667
|
+
final public func requestDidFinish(_ request: identomat.Request)
|
|
668
|
+
final public func requestDidResume(_ request: identomat.Request)
|
|
669
|
+
final public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
|
|
670
|
+
final public func requestDidSuspend(_ request: identomat.Request)
|
|
671
|
+
final public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
|
|
672
|
+
final public func requestDidCancel(_ request: identomat.Request)
|
|
673
|
+
final public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
|
|
674
|
+
final public func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
|
|
675
|
+
final public func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
|
|
676
|
+
final public func request<Value>(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Value, identomat.AFError>)
|
|
677
|
+
final public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
|
|
678
|
+
final public func request<Value>(_ request: identomat.DataStreamRequest, didParseStream result: Swift.Result<Value, identomat.AFError>)
|
|
679
|
+
final public func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
|
|
680
|
+
final public func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
|
|
681
|
+
final public func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
|
|
682
|
+
final public func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
|
|
683
|
+
final public func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
|
|
684
|
+
final public func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
|
|
685
|
+
final public func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
|
|
686
|
+
final public func request<Value>(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Value, identomat.AFError>)
|
|
687
|
+
@objc deinit
|
|
688
|
+
}
|
|
689
|
+
open class ClosureEventMonitor : identomat.EventMonitor {
|
|
690
|
+
open var sessionDidBecomeInvalidWithError: ((Foundation.URLSession, Swift.Error?) -> Swift.Void)?
|
|
691
|
+
open var taskDidReceiveChallenge: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.URLAuthenticationChallenge) -> Swift.Void)?
|
|
692
|
+
open var taskDidSendBodyData: ((Foundation.URLSession, Foundation.URLSessionTask, Swift.Int64, Swift.Int64, Swift.Int64) -> Swift.Void)?
|
|
693
|
+
open var taskNeedNewBodyStream: ((Foundation.URLSession, Foundation.URLSessionTask) -> Swift.Void)?
|
|
694
|
+
open var taskWillPerformHTTPRedirection: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.HTTPURLResponse, Foundation.URLRequest) -> Swift.Void)?
|
|
695
|
+
open var taskDidFinishCollectingMetrics: ((Foundation.URLSession, Foundation.URLSessionTask, Foundation.URLSessionTaskMetrics) -> Swift.Void)?
|
|
696
|
+
open var taskDidComplete: ((Foundation.URLSession, Foundation.URLSessionTask, Swift.Error?) -> Swift.Void)?
|
|
697
|
+
open var taskIsWaitingForConnectivity: ((Foundation.URLSession, Foundation.URLSessionTask) -> Swift.Void)?
|
|
698
|
+
open var dataTaskDidReceiveData: ((Foundation.URLSession, Foundation.URLSessionDataTask, Foundation.Data) -> Swift.Void)?
|
|
699
|
+
open var dataTaskWillCacheResponse: ((Foundation.URLSession, Foundation.URLSessionDataTask, Foundation.CachedURLResponse) -> Swift.Void)?
|
|
700
|
+
open var downloadTaskDidFinishDownloadingToURL: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Foundation.URL) -> Swift.Void)?
|
|
701
|
+
open var downloadTaskDidWriteData: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Swift.Int64, Swift.Int64, Swift.Int64) -> Swift.Void)?
|
|
702
|
+
open var downloadTaskDidResumeAtOffset: ((Foundation.URLSession, Foundation.URLSessionDownloadTask, Swift.Int64, Swift.Int64) -> Swift.Void)?
|
|
703
|
+
open var requestDidCreateInitialURLRequest: ((identomat.Request, Foundation.URLRequest) -> Swift.Void)?
|
|
704
|
+
open var requestDidFailToCreateURLRequestWithError: ((identomat.Request, identomat.AFError) -> Swift.Void)?
|
|
705
|
+
open var requestDidAdaptInitialRequestToAdaptedRequest: ((identomat.Request, Foundation.URLRequest, Foundation.URLRequest) -> Swift.Void)?
|
|
706
|
+
open var requestDidFailToAdaptURLRequestWithError: ((identomat.Request, Foundation.URLRequest, identomat.AFError) -> Swift.Void)?
|
|
707
|
+
open var requestDidCreateURLRequest: ((identomat.Request, Foundation.URLRequest) -> Swift.Void)?
|
|
708
|
+
open var requestDidCreateTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
|
|
709
|
+
open var requestDidGatherMetrics: ((identomat.Request, Foundation.URLSessionTaskMetrics) -> Swift.Void)?
|
|
710
|
+
open var requestDidFailTaskEarlyWithError: ((identomat.Request, Foundation.URLSessionTask, identomat.AFError) -> Swift.Void)?
|
|
711
|
+
open var requestDidCompleteTaskWithError: ((identomat.Request, Foundation.URLSessionTask, identomat.AFError?) -> Swift.Void)?
|
|
712
|
+
open var requestIsRetrying: ((identomat.Request) -> Swift.Void)?
|
|
713
|
+
open var requestDidFinish: ((identomat.Request) -> Swift.Void)?
|
|
714
|
+
open var requestDidResume: ((identomat.Request) -> Swift.Void)?
|
|
715
|
+
open var requestDidResumeTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
|
|
716
|
+
open var requestDidSuspend: ((identomat.Request) -> Swift.Void)?
|
|
717
|
+
open var requestDidSuspendTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
|
|
718
|
+
open var requestDidCancel: ((identomat.Request) -> Swift.Void)?
|
|
719
|
+
open var requestDidCancelTask: ((identomat.Request, Foundation.URLSessionTask) -> Swift.Void)?
|
|
720
|
+
open var requestDidValidateRequestResponseDataWithResult: ((identomat.DataRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.Data?, identomat.Request.ValidationResult) -> Swift.Void)?
|
|
721
|
+
open var requestDidParseResponse: ((identomat.DataRequest, identomat.DataResponse<Foundation.Data?, identomat.AFError>) -> Swift.Void)?
|
|
722
|
+
open var requestDidValidateRequestResponseWithResult: ((identomat.DataStreamRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, identomat.Request.ValidationResult) -> Swift.Void)?
|
|
723
|
+
open var requestDidCreateUploadable: ((identomat.UploadRequest, identomat.UploadRequest.Uploadable) -> Swift.Void)?
|
|
724
|
+
open var requestDidFailToCreateUploadableWithError: ((identomat.UploadRequest, identomat.AFError) -> Swift.Void)?
|
|
725
|
+
open var requestDidProvideInputStream: ((identomat.UploadRequest, Foundation.InputStream) -> Swift.Void)?
|
|
726
|
+
open var requestDidFinishDownloadingUsingTaskWithResult: ((identomat.DownloadRequest, Foundation.URLSessionTask, Swift.Result<Foundation.URL, identomat.AFError>) -> Swift.Void)?
|
|
727
|
+
open var requestDidCreateDestinationURL: ((identomat.DownloadRequest, Foundation.URL) -> Swift.Void)?
|
|
728
|
+
open var requestDidValidateRequestResponseFileURLWithResult: ((identomat.DownloadRequest, Foundation.URLRequest?, Foundation.HTTPURLResponse, Foundation.URL?, identomat.Request.ValidationResult) -> Swift.Void)?
|
|
729
|
+
open var requestDidParseDownloadResponse: ((identomat.DownloadRequest, identomat.DownloadResponse<Foundation.URL?, identomat.AFError>) -> Swift.Void)?
|
|
730
|
+
final public let queue: Dispatch.DispatchQueue
|
|
731
|
+
public init(queue: Dispatch.DispatchQueue = .main)
|
|
732
|
+
open func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
|
|
733
|
+
open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge)
|
|
734
|
+
open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
|
|
735
|
+
open func urlSession(_ session: Foundation.URLSession, taskNeedsNewBodyStream task: Foundation.URLSessionTask)
|
|
736
|
+
open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest)
|
|
737
|
+
open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
|
|
738
|
+
open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
|
|
739
|
+
open func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
|
|
740
|
+
open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
|
|
741
|
+
open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse)
|
|
742
|
+
open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
|
|
743
|
+
open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
|
|
744
|
+
open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
|
|
745
|
+
open func request(_ request: identomat.Request, didCreateInitialURLRequest urlRequest: Foundation.URLRequest)
|
|
746
|
+
open func request(_ request: identomat.Request, didFailToCreateURLRequestWithError error: identomat.AFError)
|
|
747
|
+
open func request(_ request: identomat.Request, didAdaptInitialRequest initialRequest: Foundation.URLRequest, to adaptedRequest: Foundation.URLRequest)
|
|
748
|
+
open func request(_ request: identomat.Request, didFailToAdaptURLRequest initialRequest: Foundation.URLRequest, withError error: identomat.AFError)
|
|
749
|
+
open func request(_ request: identomat.Request, didCreateURLRequest urlRequest: Foundation.URLRequest)
|
|
750
|
+
open func request(_ request: identomat.Request, didCreateTask task: Foundation.URLSessionTask)
|
|
751
|
+
open func request(_ request: identomat.Request, didGatherMetrics metrics: Foundation.URLSessionTaskMetrics)
|
|
752
|
+
open func request(_ request: identomat.Request, didFailTask task: Foundation.URLSessionTask, earlyWithError error: identomat.AFError)
|
|
753
|
+
open func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
|
|
754
|
+
open func requestIsRetrying(_ request: identomat.Request)
|
|
755
|
+
open func requestDidFinish(_ request: identomat.Request)
|
|
756
|
+
open func requestDidResume(_ request: identomat.Request)
|
|
757
|
+
public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
|
|
758
|
+
open func requestDidSuspend(_ request: identomat.Request)
|
|
759
|
+
public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
|
|
760
|
+
open func requestDidCancel(_ request: identomat.Request)
|
|
761
|
+
public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
|
|
762
|
+
open func request(_ request: identomat.DataRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, data: Foundation.Data?, withResult result: identomat.Request.ValidationResult)
|
|
763
|
+
open func request(_ request: identomat.DataRequest, didParseResponse response: identomat.DataResponse<Foundation.Data?, identomat.AFError>)
|
|
764
|
+
public func request(_ request: identomat.DataStreamRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, withResult result: identomat.Request.ValidationResult)
|
|
765
|
+
open func request(_ request: identomat.UploadRequest, didCreateUploadable uploadable: identomat.UploadRequest.Uploadable)
|
|
766
|
+
open func request(_ request: identomat.UploadRequest, didFailToCreateUploadableWithError error: identomat.AFError)
|
|
767
|
+
open func request(_ request: identomat.UploadRequest, didProvideInputStream stream: Foundation.InputStream)
|
|
768
|
+
open func request(_ request: identomat.DownloadRequest, didFinishDownloadingUsing task: Foundation.URLSessionTask, with result: Swift.Result<Foundation.URL, identomat.AFError>)
|
|
769
|
+
open func request(_ request: identomat.DownloadRequest, didCreateDestinationURL url: Foundation.URL)
|
|
770
|
+
open func request(_ request: identomat.DownloadRequest, didValidateRequest urlRequest: Foundation.URLRequest?, response: Foundation.HTTPURLResponse, fileURL: Foundation.URL?, withResult result: identomat.Request.ValidationResult)
|
|
771
|
+
open func request(_ request: identomat.DownloadRequest, didParseResponse response: identomat.DownloadResponse<Foundation.URL?, identomat.AFError>)
|
|
772
|
+
@objc deinit
|
|
773
|
+
}
|
|
774
|
+
public protocol ParameterEncoder {
|
|
775
|
+
func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
|
|
776
|
+
}
|
|
777
|
+
open class JSONParameterEncoder : identomat.ParameterEncoder {
|
|
778
|
+
public static var `default`: identomat.JSONParameterEncoder {
|
|
779
|
+
get
|
|
780
|
+
}
|
|
781
|
+
public static var prettyPrinted: identomat.JSONParameterEncoder {
|
|
782
|
+
get
|
|
783
|
+
}
|
|
784
|
+
@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
|
|
785
|
+
public static var sortedKeys: identomat.JSONParameterEncoder {
|
|
786
|
+
get
|
|
787
|
+
}
|
|
788
|
+
final public let encoder: Foundation.JSONEncoder
|
|
789
|
+
public init(encoder: Foundation.JSONEncoder = JSONEncoder())
|
|
790
|
+
open func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
|
|
791
|
+
@objc deinit
|
|
792
|
+
}
|
|
793
|
+
open class URLEncodedFormParameterEncoder : identomat.ParameterEncoder {
|
|
794
|
+
public enum Destination {
|
|
795
|
+
case methodDependent
|
|
796
|
+
case queryString
|
|
797
|
+
case httpBody
|
|
798
|
+
public static func == (a: identomat.URLEncodedFormParameterEncoder.Destination, b: identomat.URLEncodedFormParameterEncoder.Destination) -> Swift.Bool
|
|
799
|
+
public var hashValue: Swift.Int {
|
|
800
|
+
get
|
|
801
|
+
}
|
|
802
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
803
|
+
}
|
|
804
|
+
public static var `default`: identomat.URLEncodedFormParameterEncoder {
|
|
805
|
+
get
|
|
806
|
+
}
|
|
807
|
+
final public let encoder: identomat.URLEncodedFormEncoder
|
|
808
|
+
final public let destination: identomat.URLEncodedFormParameterEncoder.Destination
|
|
809
|
+
public init(encoder: identomat.URLEncodedFormEncoder = URLEncodedFormEncoder(), destination: identomat.URLEncodedFormParameterEncoder.Destination = .methodDependent)
|
|
810
|
+
open func encode<Parameters>(_ parameters: Parameters?, into request: Foundation.URLRequest) throws -> Foundation.URLRequest where Parameters : Swift.Encodable
|
|
811
|
+
@objc deinit
|
|
812
|
+
}
|
|
813
|
+
open class ServerTrustManager {
|
|
814
|
+
final public let allHostsMustBeEvaluated: Swift.Bool
|
|
815
|
+
final public let evaluators: [Swift.String : identomat.ServerTrustEvaluating]
|
|
816
|
+
public init(allHostsMustBeEvaluated: Swift.Bool = true, evaluators: [Swift.String : identomat.ServerTrustEvaluating])
|
|
817
|
+
open func serverTrustEvaluator(forHost host: Swift.String) throws -> identomat.ServerTrustEvaluating?
|
|
818
|
+
@objc deinit
|
|
819
|
+
}
|
|
820
|
+
public protocol ServerTrustEvaluating {
|
|
821
|
+
func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
822
|
+
}
|
|
823
|
+
final public class DefaultTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
824
|
+
public init(validateHost: Swift.Bool = true)
|
|
825
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
826
|
+
@objc deinit
|
|
827
|
+
}
|
|
828
|
+
final public class RevocationTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
829
|
+
public struct Options : Swift.OptionSet {
|
|
830
|
+
public static var crl: identomat.RevocationTrustEvaluator.Options
|
|
831
|
+
public static var networkAccessDisabled: identomat.RevocationTrustEvaluator.Options
|
|
832
|
+
public static var ocsp: identomat.RevocationTrustEvaluator.Options
|
|
833
|
+
public static var preferCRL: identomat.RevocationTrustEvaluator.Options
|
|
834
|
+
public static var requirePositiveResponse: identomat.RevocationTrustEvaluator.Options
|
|
835
|
+
public static var any: identomat.RevocationTrustEvaluator.Options
|
|
836
|
+
public let rawValue: CoreFoundation.CFOptionFlags
|
|
837
|
+
public init(rawValue: CoreFoundation.CFOptionFlags)
|
|
838
|
+
public typealias Element = identomat.RevocationTrustEvaluator.Options
|
|
839
|
+
public typealias ArrayLiteralElement = identomat.RevocationTrustEvaluator.Options
|
|
840
|
+
public typealias RawValue = CoreFoundation.CFOptionFlags
|
|
841
|
+
}
|
|
842
|
+
public init(performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true, options: identomat.RevocationTrustEvaluator.Options = .any)
|
|
843
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
844
|
+
@objc deinit
|
|
845
|
+
}
|
|
846
|
+
final public class PinnedCertificatesTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
847
|
+
public init(certificates: [Security.SecCertificate] = Bundle.main.af.certificates, acceptSelfSignedCertificates: Swift.Bool = false, performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true)
|
|
848
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
849
|
+
@objc deinit
|
|
850
|
+
}
|
|
851
|
+
final public class PublicKeysTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
852
|
+
public init(keys: [Security.SecKey] = Bundle.main.af.publicKeys, performDefaultValidation: Swift.Bool = true, validateHost: Swift.Bool = true)
|
|
853
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
854
|
+
@objc deinit
|
|
855
|
+
}
|
|
856
|
+
final public class CompositeTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
857
|
+
public init(evaluators: [identomat.ServerTrustEvaluating])
|
|
858
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
859
|
+
@objc deinit
|
|
860
|
+
}
|
|
861
|
+
@available(*, deprecated, renamed: "DisabledTrustEvaluator", message: "DisabledEvaluator has been renamed DisabledTrustEvaluator.")
|
|
862
|
+
public typealias DisabledEvaluator = identomat.DisabledTrustEvaluator
|
|
863
|
+
final public class DisabledTrustEvaluator : identomat.ServerTrustEvaluating {
|
|
864
|
+
public init()
|
|
865
|
+
final public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
866
|
+
@objc deinit
|
|
867
|
+
}
|
|
868
|
+
extension Array where Element == identomat.ServerTrustEvaluating {
|
|
869
|
+
public func evaluate(_ trust: Security.SecTrust, forHost host: Swift.String) throws
|
|
870
|
+
}
|
|
871
|
+
extension Bundle : identomat.AlamofireExtended {
|
|
872
|
+
public typealias ExtendedType = Foundation.Bundle
|
|
873
|
+
}
|
|
874
|
+
extension AlamofireExtension where ExtendedType : Foundation.Bundle {
|
|
875
|
+
public var certificates: [Security.SecCertificate] {
|
|
876
|
+
get
|
|
877
|
+
}
|
|
878
|
+
public var publicKeys: [Security.SecKey] {
|
|
879
|
+
get
|
|
880
|
+
}
|
|
881
|
+
public func paths(forResourcesOfTypes types: [Swift.String]) -> [Swift.String]
|
|
882
|
+
}
|
|
883
|
+
extension SecTrust : identomat.AlamofireExtended {
|
|
884
|
+
public typealias ExtendedType = Security.SecTrust
|
|
885
|
+
}
|
|
886
|
+
extension AlamofireExtension where ExtendedType == Security.SecTrust {
|
|
887
|
+
@available(iOS 12, OSX 10.14, tvOS 12, watchOS 5, *)
|
|
888
|
+
public func evaluate(afterApplying policy: Security.SecPolicy) throws
|
|
889
|
+
@available(iOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
|
|
890
|
+
@available(OSX, introduced: 10.12, deprecated: 10.14, renamed: "evaluate(afterApplying:)")
|
|
891
|
+
@available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate(afterApplying:)")
|
|
892
|
+
@available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate(afterApplying:)")
|
|
893
|
+
public func validate(policy: Security.SecPolicy, errorProducer: (Darwin.OSStatus, Security.SecTrustResultType) -> Swift.Error) throws
|
|
894
|
+
public func apply(policy: Security.SecPolicy) throws -> Security.SecTrust
|
|
895
|
+
@available(iOS 12, OSX 10.14, tvOS 12, watchOS 5, *)
|
|
896
|
+
public func evaluate() throws
|
|
897
|
+
@available(iOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
|
|
898
|
+
@available(OSX, introduced: 10.12, deprecated: 10.14, renamed: "evaluate()")
|
|
899
|
+
@available(tvOS, introduced: 10, deprecated: 12, renamed: "evaluate()")
|
|
900
|
+
@available(watchOS, introduced: 3, deprecated: 5, renamed: "evaluate()")
|
|
901
|
+
public func validate(errorProducer: (Darwin.OSStatus, Security.SecTrustResultType) -> Swift.Error) throws
|
|
902
|
+
public func setAnchorCertificates(_ certificates: [Security.SecCertificate]) throws
|
|
903
|
+
public var publicKeys: [Security.SecKey] {
|
|
904
|
+
get
|
|
905
|
+
}
|
|
906
|
+
public var certificates: [Security.SecCertificate] {
|
|
907
|
+
get
|
|
908
|
+
}
|
|
909
|
+
public var certificateData: [Foundation.Data] {
|
|
910
|
+
get
|
|
911
|
+
}
|
|
912
|
+
public func performDefaultValidation(forHost host: Swift.String) throws
|
|
913
|
+
public func performValidation(forHost host: Swift.String) throws
|
|
914
|
+
}
|
|
915
|
+
extension SecPolicy : identomat.AlamofireExtended {
|
|
916
|
+
public typealias ExtendedType = Security.SecPolicy
|
|
917
|
+
}
|
|
918
|
+
extension AlamofireExtension where ExtendedType == Security.SecPolicy {
|
|
919
|
+
public static var `default`: Security.SecPolicy
|
|
920
|
+
public static func hostname(_ hostname: Swift.String) -> Security.SecPolicy
|
|
921
|
+
public static func revocation(options: identomat.RevocationTrustEvaluator.Options) throws -> Security.SecPolicy
|
|
922
|
+
}
|
|
923
|
+
extension Array : identomat.AlamofireExtended {
|
|
924
|
+
public typealias ExtendedType = Swift.Array<Element>
|
|
925
|
+
}
|
|
926
|
+
extension AlamofireExtension where ExtendedType == [Security.SecCertificate] {
|
|
927
|
+
public var data: [Foundation.Data] {
|
|
928
|
+
get
|
|
929
|
+
}
|
|
930
|
+
public var publicKeys: [Security.SecKey] {
|
|
931
|
+
get
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
extension SecCertificate : identomat.AlamofireExtended {
|
|
935
|
+
public typealias ExtendedType = Security.SecCertificate
|
|
936
|
+
}
|
|
937
|
+
extension AlamofireExtension where ExtendedType == Security.SecCertificate {
|
|
938
|
+
public var publicKey: Security.SecKey? {
|
|
939
|
+
get
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
extension Int32 : identomat.AlamofireExtended {
|
|
943
|
+
public typealias ExtendedType = Swift.Int32
|
|
944
|
+
}
|
|
945
|
+
extension AlamofireExtension where ExtendedType == Darwin.OSStatus {
|
|
946
|
+
public var isSuccess: Swift.Bool {
|
|
947
|
+
get
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
extension SecTrustResultType : identomat.AlamofireExtended {
|
|
951
|
+
public typealias ExtendedType = Security.SecTrustResultType
|
|
952
|
+
}
|
|
953
|
+
extension AlamofireExtension where ExtendedType == Security.SecTrustResultType {
|
|
954
|
+
public var isSuccess: Swift.Bool {
|
|
955
|
+
get
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
public protocol DataResponseSerializerProtocol {
|
|
959
|
+
associatedtype SerializedObject
|
|
960
|
+
func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Self.SerializedObject
|
|
961
|
+
}
|
|
962
|
+
public protocol DownloadResponseSerializerProtocol {
|
|
963
|
+
associatedtype SerializedObject
|
|
964
|
+
func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Self.SerializedObject
|
|
965
|
+
}
|
|
966
|
+
public protocol ResponseSerializer : identomat.DataResponseSerializerProtocol, identomat.DownloadResponseSerializerProtocol {
|
|
967
|
+
var dataPreprocessor: identomat.DataPreprocessor { get }
|
|
968
|
+
var emptyRequestMethods: Swift.Set<identomat.HTTPMethod> { get }
|
|
969
|
+
var emptyResponseCodes: Swift.Set<Swift.Int> { get }
|
|
970
|
+
}
|
|
971
|
+
public protocol DataPreprocessor {
|
|
972
|
+
func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
|
|
973
|
+
}
|
|
974
|
+
public struct PassthroughPreprocessor : identomat.DataPreprocessor {
|
|
975
|
+
public init()
|
|
976
|
+
public func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
|
|
977
|
+
}
|
|
978
|
+
public struct GoogleXSSIPreprocessor : identomat.DataPreprocessor {
|
|
979
|
+
public init()
|
|
980
|
+
public func preprocess(_ data: Foundation.Data) throws -> Foundation.Data
|
|
981
|
+
}
|
|
982
|
+
extension ResponseSerializer {
|
|
983
|
+
public static var defaultDataPreprocessor: identomat.DataPreprocessor {
|
|
984
|
+
get
|
|
985
|
+
}
|
|
986
|
+
public static var defaultEmptyRequestMethods: Swift.Set<identomat.HTTPMethod> {
|
|
987
|
+
get
|
|
988
|
+
}
|
|
989
|
+
public static var defaultEmptyResponseCodes: Swift.Set<Swift.Int> {
|
|
990
|
+
get
|
|
991
|
+
}
|
|
992
|
+
public var dataPreprocessor: identomat.DataPreprocessor {
|
|
993
|
+
get
|
|
994
|
+
}
|
|
995
|
+
public var emptyRequestMethods: Swift.Set<identomat.HTTPMethod> {
|
|
996
|
+
get
|
|
997
|
+
}
|
|
998
|
+
public var emptyResponseCodes: Swift.Set<Swift.Int> {
|
|
999
|
+
get
|
|
1000
|
+
}
|
|
1001
|
+
public func requestAllowsEmptyResponseData(_ request: Foundation.URLRequest?) -> Swift.Bool?
|
|
1002
|
+
public func responseAllowsEmptyResponseData(_ response: Foundation.HTTPURLResponse?) -> Swift.Bool?
|
|
1003
|
+
public func emptyResponseAllowed(forRequest request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?) -> Swift.Bool
|
|
1004
|
+
}
|
|
1005
|
+
extension DownloadResponseSerializerProtocol where Self : identomat.DataResponseSerializerProtocol {
|
|
1006
|
+
public func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Self.SerializedObject
|
|
1007
|
+
}
|
|
1008
|
+
extension DataRequest {
|
|
1009
|
+
@discardableResult
|
|
1010
|
+
public func response(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDataResponse<Foundation.Data?>) -> Swift.Void) -> Self
|
|
1011
|
+
@discardableResult
|
|
1012
|
+
public func response<Serializer>(queue: Dispatch.DispatchQueue = .main, responseSerializer: Serializer, completionHandler: @escaping (identomat.AFDataResponse<Serializer.SerializedObject>) -> Swift.Void) -> Self where Serializer : identomat.DataResponseSerializerProtocol
|
|
1013
|
+
}
|
|
1014
|
+
extension DownloadRequest {
|
|
1015
|
+
@discardableResult
|
|
1016
|
+
public func response(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.URL?>) -> Swift.Void) -> Self
|
|
1017
|
+
@discardableResult
|
|
1018
|
+
public func response<Serializer>(queue: Dispatch.DispatchQueue = .main, responseSerializer: Serializer, completionHandler: @escaping (identomat.AFDownloadResponse<Serializer.SerializedObject>) -> Swift.Void) -> Self where Serializer : identomat.DownloadResponseSerializerProtocol
|
|
1019
|
+
}
|
|
1020
|
+
public struct URLResponseSerializer : identomat.DownloadResponseSerializerProtocol {
|
|
1021
|
+
public init()
|
|
1022
|
+
public func serializeDownload(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, fileURL: Foundation.URL?, error: Swift.Error?) throws -> Foundation.URL
|
|
1023
|
+
public typealias SerializedObject = Foundation.URL
|
|
1024
|
+
}
|
|
1025
|
+
extension DownloadRequest {
|
|
1026
|
+
@discardableResult
|
|
1027
|
+
public func responseURL(queue: Dispatch.DispatchQueue = .main, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.URL>) -> Swift.Void) -> Self
|
|
1028
|
+
}
|
|
1029
|
+
final public class DataResponseSerializer : identomat.ResponseSerializer {
|
|
1030
|
+
final public let dataPreprocessor: identomat.DataPreprocessor
|
|
1031
|
+
final public let emptyResponseCodes: Swift.Set<Swift.Int>
|
|
1032
|
+
final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
|
|
1033
|
+
public init(dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods)
|
|
1034
|
+
final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Foundation.Data
|
|
1035
|
+
@objc deinit
|
|
1036
|
+
public typealias SerializedObject = Foundation.Data
|
|
1037
|
+
}
|
|
1038
|
+
extension DataRequest {
|
|
1039
|
+
@discardableResult
|
|
1040
|
+
public func responseData(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<Foundation.Data>) -> Swift.Void) -> Self
|
|
1041
|
+
}
|
|
1042
|
+
extension DownloadRequest {
|
|
1043
|
+
@discardableResult
|
|
1044
|
+
public func responseData(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<Foundation.Data>) -> Swift.Void) -> Self
|
|
1045
|
+
}
|
|
1046
|
+
final public class StringResponseSerializer : identomat.ResponseSerializer {
|
|
1047
|
+
final public let dataPreprocessor: identomat.DataPreprocessor
|
|
1048
|
+
final public let encoding: Swift.String.Encoding?
|
|
1049
|
+
final public let emptyResponseCodes: Swift.Set<Swift.Int>
|
|
1050
|
+
final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
|
|
1051
|
+
public init(dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods)
|
|
1052
|
+
final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Swift.String
|
|
1053
|
+
@objc deinit
|
|
1054
|
+
public typealias SerializedObject = Swift.String
|
|
1055
|
+
}
|
|
1056
|
+
extension DataRequest {
|
|
1057
|
+
@discardableResult
|
|
1058
|
+
public func responseString(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<Swift.String>) -> Swift.Void) -> Self
|
|
1059
|
+
}
|
|
1060
|
+
extension DownloadRequest {
|
|
1061
|
+
@discardableResult
|
|
1062
|
+
public func responseString(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<Swift.String>) -> Swift.Void) -> Self
|
|
1063
|
+
}
|
|
1064
|
+
final public class JSONResponseSerializer : identomat.ResponseSerializer {
|
|
1065
|
+
final public let dataPreprocessor: identomat.DataPreprocessor
|
|
1066
|
+
final public let emptyResponseCodes: Swift.Set<Swift.Int>
|
|
1067
|
+
final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
|
|
1068
|
+
final public let options: Foundation.JSONSerialization.ReadingOptions
|
|
1069
|
+
public init(dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments)
|
|
1070
|
+
final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> Any
|
|
1071
|
+
@objc deinit
|
|
1072
|
+
public typealias SerializedObject = Any
|
|
1073
|
+
}
|
|
1074
|
+
extension DataRequest {
|
|
1075
|
+
@discardableResult
|
|
1076
|
+
public func responseJSON(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments, completionHandler: @escaping (identomat.AFDataResponse<Any>) -> Swift.Void) -> Self
|
|
1077
|
+
}
|
|
1078
|
+
extension DownloadRequest {
|
|
1079
|
+
@discardableResult
|
|
1080
|
+
public func responseJSON(queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = JSONResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = JSONResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = JSONResponseSerializer.defaultEmptyRequestMethods, options: Foundation.JSONSerialization.ReadingOptions = .allowFragments, completionHandler: @escaping (identomat.AFDownloadResponse<Any>) -> Swift.Void) -> Self
|
|
1081
|
+
}
|
|
1082
|
+
public protocol EmptyResponse {
|
|
1083
|
+
static func emptyValue() -> Self
|
|
1084
|
+
}
|
|
1085
|
+
public struct Empty : Swift.Codable {
|
|
1086
|
+
public static var value: identomat.Empty
|
|
1087
|
+
public init(from decoder: Swift.Decoder) throws
|
|
1088
|
+
public func encode(to encoder: Swift.Encoder) throws
|
|
1089
|
+
}
|
|
1090
|
+
extension Empty : identomat.EmptyResponse {
|
|
1091
|
+
public static func emptyValue() -> identomat.Empty
|
|
1092
|
+
}
|
|
1093
|
+
public protocol DataDecoder {
|
|
1094
|
+
func decode<D>(_ type: D.Type, from data: Foundation.Data) throws -> D where D : Swift.Decodable
|
|
1095
|
+
}
|
|
1096
|
+
extension JSONDecoder : identomat.DataDecoder {
|
|
1097
|
+
}
|
|
1098
|
+
extension PropertyListDecoder : identomat.DataDecoder {
|
|
1099
|
+
}
|
|
1100
|
+
final public class DecodableResponseSerializer<T> : identomat.ResponseSerializer where T : Swift.Decodable {
|
|
1101
|
+
final public let dataPreprocessor: identomat.DataPreprocessor
|
|
1102
|
+
final public let decoder: identomat.DataDecoder
|
|
1103
|
+
final public let emptyResponseCodes: Swift.Set<Swift.Int>
|
|
1104
|
+
final public let emptyRequestMethods: Swift.Set<identomat.HTTPMethod>
|
|
1105
|
+
public init(dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer.defaultEmptyRequestMethods)
|
|
1106
|
+
final public func serialize(request: Foundation.URLRequest?, response: Foundation.HTTPURLResponse?, data: Foundation.Data?, error: Swift.Error?) throws -> T
|
|
1107
|
+
@objc deinit
|
|
1108
|
+
public typealias SerializedObject = T
|
|
1109
|
+
}
|
|
1110
|
+
extension DataRequest {
|
|
1111
|
+
@discardableResult
|
|
1112
|
+
public func responseDecodable<T>(of type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDataResponse<T>) -> Swift.Void) -> Self where T : Swift.Decodable
|
|
1113
|
+
}
|
|
1114
|
+
extension DownloadRequest {
|
|
1115
|
+
@discardableResult
|
|
1116
|
+
public func responseDecodable<T>(of type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, dataPreprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods, completionHandler: @escaping (identomat.AFDownloadResponse<T>) -> Swift.Void) -> Self where T : Swift.Decodable
|
|
1117
|
+
}
|
|
1118
|
+
public protocol DataStreamSerializer {
|
|
1119
|
+
associatedtype SerializedObject
|
|
1120
|
+
func serialize(_ data: Foundation.Data) throws -> Self.SerializedObject
|
|
1121
|
+
}
|
|
1122
|
+
public struct DecodableStreamSerializer<T> : identomat.DataStreamSerializer where T : Swift.Decodable {
|
|
1123
|
+
public let decoder: identomat.DataDecoder
|
|
1124
|
+
public let dataPreprocessor: identomat.DataPreprocessor
|
|
1125
|
+
public init(decoder: identomat.DataDecoder = JSONDecoder(), dataPreprocessor: identomat.DataPreprocessor = PassthroughPreprocessor())
|
|
1126
|
+
public func serialize(_ data: Foundation.Data) throws -> T
|
|
1127
|
+
public typealias SerializedObject = T
|
|
1128
|
+
}
|
|
1129
|
+
public struct PassthroughStreamSerializer : identomat.DataStreamSerializer {
|
|
1130
|
+
public func serialize(_ data: Foundation.Data) throws -> Foundation.Data
|
|
1131
|
+
public typealias SerializedObject = Foundation.Data
|
|
1132
|
+
}
|
|
1133
|
+
public struct StringStreamSerializer : identomat.DataStreamSerializer {
|
|
1134
|
+
public func serialize(_ data: Foundation.Data) throws -> Swift.String
|
|
1135
|
+
public typealias SerializedObject = Swift.String
|
|
1136
|
+
}
|
|
1137
|
+
extension DataStreamRequest {
|
|
1138
|
+
@discardableResult
|
|
1139
|
+
final public func responseStream(on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Foundation.Data, Swift.Never>) -> Self
|
|
1140
|
+
@discardableResult
|
|
1141
|
+
final public func responseStream<Serializer>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Serializer.SerializedObject, identomat.AFError>) -> Self where Serializer : identomat.DataStreamSerializer
|
|
1142
|
+
@discardableResult
|
|
1143
|
+
final public func responseStreamString(on queue: Dispatch.DispatchQueue = .main, stream: @escaping identomat.DataStreamRequest.Handler<Swift.String, Swift.Never>) -> Self
|
|
1144
|
+
@discardableResult
|
|
1145
|
+
final public func responseStreamDecodable<T>(of type: T.Type = T.self, on queue: Dispatch.DispatchQueue = .main, using decoder: identomat.DataDecoder = JSONDecoder(), preprocessor: identomat.DataPreprocessor = PassthroughPreprocessor(), stream: @escaping identomat.DataStreamRequest.Handler<T, identomat.AFError>) -> Self where T : Swift.Decodable
|
|
1146
|
+
}
|
|
1147
|
+
public enum NVActivityIndicatorType : Swift.CaseIterable {
|
|
1148
|
+
case blank
|
|
1149
|
+
case ballPulse
|
|
1150
|
+
case ballGridPulse
|
|
1151
|
+
case ballClipRotate
|
|
1152
|
+
case squareSpin
|
|
1153
|
+
case ballClipRotatePulse
|
|
1154
|
+
case ballClipRotateMultiple
|
|
1155
|
+
case ballPulseRise
|
|
1156
|
+
case ballRotate
|
|
1157
|
+
case cubeTransition
|
|
1158
|
+
case ballZigZag
|
|
1159
|
+
case ballZigZagDeflect
|
|
1160
|
+
case ballTrianglePath
|
|
1161
|
+
case ballScale
|
|
1162
|
+
case lineScale
|
|
1163
|
+
case lineScaleParty
|
|
1164
|
+
case ballScaleMultiple
|
|
1165
|
+
case ballPulseSync
|
|
1166
|
+
case ballBeat
|
|
1167
|
+
case ballDoubleBounce
|
|
1168
|
+
case lineScalePulseOut
|
|
1169
|
+
case lineScalePulseOutRapid
|
|
1170
|
+
case ballScaleRipple
|
|
1171
|
+
case ballScaleRippleMultiple
|
|
1172
|
+
case ballSpinFadeLoader
|
|
1173
|
+
case lineSpinFadeLoader
|
|
1174
|
+
case triangleSkewSpin
|
|
1175
|
+
case pacman
|
|
1176
|
+
case ballGridBeat
|
|
1177
|
+
case semiCircleSpin
|
|
1178
|
+
case ballRotateChase
|
|
1179
|
+
case orbit
|
|
1180
|
+
case audioEqualizer
|
|
1181
|
+
case circleStrokeSpin
|
|
1182
|
+
public static func == (a: identomat.NVActivityIndicatorType, b: identomat.NVActivityIndicatorType) -> Swift.Bool
|
|
1183
|
+
public var hashValue: Swift.Int {
|
|
1184
|
+
get
|
|
1185
|
+
}
|
|
1186
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1187
|
+
public typealias AllCases = [identomat.NVActivityIndicatorType]
|
|
1188
|
+
public static var allCases: [identomat.NVActivityIndicatorType] {
|
|
1189
|
+
get
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
public typealias FadeInAnimation = (UIKit.UIView) -> Swift.Void
|
|
1193
|
+
public typealias FadeOutAnimation = (UIKit.UIView, @escaping () -> Swift.Void) -> Swift.Void
|
|
1194
|
+
@objc final public class NVActivityIndicatorView : UIKit.UIView {
|
|
1195
|
+
public static var DEFAULT_TYPE: identomat.NVActivityIndicatorType
|
|
1196
|
+
public static var DEFAULT_COLOR: UIKit.UIColor
|
|
1197
|
+
public static var DEFAULT_TEXT_COLOR: UIKit.UIColor
|
|
1198
|
+
public static var DEFAULT_PADDING: CoreGraphics.CGFloat
|
|
1199
|
+
public static var DEFAULT_BLOCKER_SIZE: CoreGraphics.CGSize
|
|
1200
|
+
public static var DEFAULT_BLOCKER_DISPLAY_TIME_THRESHOLD: Swift.Int
|
|
1201
|
+
public static var DEFAULT_BLOCKER_MINIMUM_DISPLAY_TIME: Swift.Int
|
|
1202
|
+
public static var DEFAULT_BLOCKER_MESSAGE: Swift.String?
|
|
1203
|
+
public static var DEFAULT_BLOCKER_MESSAGE_SPACING: CoreGraphics.CGFloat
|
|
1204
|
+
public static var DEFAULT_BLOCKER_MESSAGE_FONT: UIKit.UIFont
|
|
1205
|
+
public static var DEFAULT_BLOCKER_BACKGROUND_COLOR: UIKit.UIColor
|
|
1206
|
+
public static var DEFAULT_FADE_IN_ANIMATION: (UIKit.UIView) -> Swift.Void
|
|
1207
|
+
public static var DEFAULT_FADE_OUT_ANIMATION: (UIKit.UIView, @escaping () -> Swift.Void) -> Swift.Void
|
|
1208
|
+
final public var type: identomat.NVActivityIndicatorType
|
|
1209
|
+
@objc @IBInspectable final public var color: UIKit.UIColor
|
|
1210
|
+
@objc @IBInspectable final public var padding: CoreGraphics.CGFloat
|
|
1211
|
+
@available(*, deprecated)
|
|
1212
|
+
final public var animating: Swift.Bool {
|
|
1213
|
+
get
|
|
1214
|
+
}
|
|
1215
|
+
final public var isAnimating: Swift.Bool {
|
|
1216
|
+
get
|
|
1217
|
+
}
|
|
1218
|
+
@objc required dynamic public init?(coder aDecoder: Foundation.NSCoder)
|
|
1219
|
+
public init(frame: CoreGraphics.CGRect, type: identomat.NVActivityIndicatorType? = nil, color: UIKit.UIColor? = nil, padding: CoreGraphics.CGFloat? = nil)
|
|
1220
|
+
@objc override final public var intrinsicContentSize: CoreGraphics.CGSize {
|
|
1221
|
+
@objc get
|
|
1222
|
+
}
|
|
1223
|
+
@objc override final public var bounds: CoreGraphics.CGRect {
|
|
1224
|
+
@objc get
|
|
1225
|
+
@objc set(value)
|
|
1226
|
+
}
|
|
1227
|
+
final public func startAnimating()
|
|
1228
|
+
final public func stopAnimating()
|
|
1229
|
+
@objc deinit
|
|
1230
|
+
@objc override dynamic public init(frame: CoreGraphics.CGRect)
|
|
1231
|
+
}
|
|
1232
|
+
public struct HTTPMethod : Swift.RawRepresentable, Swift.Equatable, Swift.Hashable {
|
|
1233
|
+
public static var connect: identomat.HTTPMethod
|
|
1234
|
+
public static var delete: identomat.HTTPMethod
|
|
1235
|
+
public static var get: identomat.HTTPMethod
|
|
1236
|
+
public static var head: identomat.HTTPMethod
|
|
1237
|
+
public static var options: identomat.HTTPMethod
|
|
1238
|
+
public static var patch: identomat.HTTPMethod
|
|
1239
|
+
public static var post: identomat.HTTPMethod
|
|
1240
|
+
public static var put: identomat.HTTPMethod
|
|
1241
|
+
public static var trace: identomat.HTTPMethod
|
|
1242
|
+
public let rawValue: Swift.String
|
|
1243
|
+
public init(rawValue: Swift.String)
|
|
1244
|
+
public typealias RawValue = Swift.String
|
|
1245
|
+
}
|
|
1246
|
+
@objc @_hasMissingDesignatedInitializers public class NavigationView : UIKit.UIView {
|
|
1247
|
+
@objc override dynamic public init(frame: CoreGraphics.CGRect)
|
|
1248
|
+
@objc deinit
|
|
1249
|
+
}
|
|
1250
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1251
|
+
public struct DataResponsePublisher<Value> : Combine.Publisher {
|
|
1252
|
+
public typealias Output = identomat.DataResponse<Value, identomat.AFError>
|
|
1253
|
+
public typealias Failure = Swift.Never
|
|
1254
|
+
public init<Serializer>(_ request: identomat.DataRequest, queue: Dispatch.DispatchQueue, serializer: Serializer) where Value == Serializer.SerializedObject, Serializer : identomat.ResponseSerializer
|
|
1255
|
+
public init<Serializer>(_ request: identomat.DataRequest, queue: Dispatch.DispatchQueue, serializer: Serializer) where Value == Serializer.SerializedObject, Serializer : identomat.DataResponseSerializerProtocol
|
|
1256
|
+
public func result() -> Combine.AnyPublisher<Swift.Result<Value, identomat.AFError>, Swift.Never>
|
|
1257
|
+
public func value() -> Combine.AnyPublisher<Value, identomat.AFError>
|
|
1258
|
+
public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == identomat.DataResponsePublisher<Value>.Failure, S.Input == identomat.DataResponsePublisher<Value>.Output
|
|
1259
|
+
}
|
|
1260
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1261
|
+
extension DataResponsePublisher where Value == Foundation.Data? {
|
|
1262
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1263
|
+
public init(_ request: identomat.DataRequest, queue: Dispatch.DispatchQueue)
|
|
1264
|
+
}
|
|
1265
|
+
extension DataRequest {
|
|
1266
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1267
|
+
public func publishResponse<Serializer, T>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main) -> identomat.DataResponsePublisher<T> where Serializer : identomat.ResponseSerializer, T == Serializer.SerializedObject
|
|
1268
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1269
|
+
public func publishData(queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods) -> identomat.DataResponsePublisher<Foundation.Data>
|
|
1270
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1271
|
+
public func publishString(queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods) -> identomat.DataResponsePublisher<Swift.String>
|
|
1272
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1273
|
+
public func publishDecodable<T>(type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyResponseMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods) -> identomat.DataResponsePublisher<T> where T : Swift.Decodable
|
|
1274
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1275
|
+
public func publishUnserialized(queue: Dispatch.DispatchQueue = .main) -> identomat.DataResponsePublisher<Foundation.Data?>
|
|
1276
|
+
}
|
|
1277
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1278
|
+
public struct DataStreamPublisher<Value> : Combine.Publisher {
|
|
1279
|
+
public typealias Output = identomat.DataStreamRequest.Stream<Value, identomat.AFError>
|
|
1280
|
+
public typealias Failure = Swift.Never
|
|
1281
|
+
public init<Serializer>(_ request: identomat.DataStreamRequest, queue: Dispatch.DispatchQueue, serializer: Serializer) where Value == Serializer.SerializedObject, Serializer : identomat.DataStreamSerializer
|
|
1282
|
+
public func result() -> Combine.AnyPublisher<Swift.Result<Value, identomat.AFError>, Swift.Never>
|
|
1283
|
+
public func value() -> Combine.AnyPublisher<Value, identomat.AFError>
|
|
1284
|
+
public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == identomat.DataStreamPublisher<Value>.Failure, S.Input == identomat.DataStreamPublisher<Value>.Output
|
|
1285
|
+
}
|
|
1286
|
+
extension DataStreamRequest {
|
|
1287
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1288
|
+
final public func publishStream<Serializer>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main) -> identomat.DataStreamPublisher<Serializer.SerializedObject> where Serializer : identomat.DataStreamSerializer
|
|
1289
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1290
|
+
final public func publishData(queue: Dispatch.DispatchQueue = .main) -> identomat.DataStreamPublisher<Foundation.Data>
|
|
1291
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1292
|
+
final public func publishString(queue: Dispatch.DispatchQueue = .main) -> identomat.DataStreamPublisher<Swift.String>
|
|
1293
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1294
|
+
final public func publishDecodable<T>(type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, decoder: identomat.DataDecoder = JSONDecoder(), preprocessor: identomat.DataPreprocessor = PassthroughPreprocessor()) -> identomat.DataStreamPublisher<T> where T : Swift.Decodable
|
|
1295
|
+
}
|
|
1296
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1297
|
+
public struct DownloadResponsePublisher<Value> : Combine.Publisher {
|
|
1298
|
+
public typealias Output = identomat.DownloadResponse<Value, identomat.AFError>
|
|
1299
|
+
public typealias Failure = Swift.Never
|
|
1300
|
+
public init<Serializer>(_ request: identomat.DownloadRequest, queue: Dispatch.DispatchQueue, serializer: Serializer) where Value == Serializer.SerializedObject, Serializer : identomat.ResponseSerializer
|
|
1301
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1302
|
+
public init<Serializer>(_ request: identomat.DownloadRequest, queue: Dispatch.DispatchQueue, serializer: Serializer) where Value == Serializer.SerializedObject, Serializer : identomat.DownloadResponseSerializerProtocol
|
|
1303
|
+
public func result() -> Combine.AnyPublisher<Swift.Result<Value, identomat.AFError>, Swift.Never>
|
|
1304
|
+
public func value() -> Combine.AnyPublisher<Value, identomat.AFError>
|
|
1305
|
+
public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == identomat.DownloadResponsePublisher<Value>.Failure, S.Input == identomat.DownloadResponsePublisher<Value>.Output
|
|
1306
|
+
}
|
|
1307
|
+
extension DownloadRequest {
|
|
1308
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1309
|
+
public func publishResponse<Serializer, T>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main) -> identomat.DownloadResponsePublisher<T> where Serializer : identomat.ResponseSerializer, T == Serializer.SerializedObject
|
|
1310
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1311
|
+
public func publishResponse<Serializer, T>(using serializer: Serializer, on queue: Dispatch.DispatchQueue = .main) -> identomat.DownloadResponsePublisher<T> where Serializer : identomat.DownloadResponseSerializerProtocol, T == Serializer.SerializedObject
|
|
1312
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1313
|
+
public func publishURL(queue: Dispatch.DispatchQueue = .main) -> identomat.DownloadResponsePublisher<Foundation.URL>
|
|
1314
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1315
|
+
public func publishData(queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = DataResponseSerializer.defaultDataPreprocessor, emptyResponseCodes: Swift.Set<Swift.Int> = DataResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = DataResponseSerializer.defaultEmptyRequestMethods) -> identomat.DownloadResponsePublisher<Foundation.Data>
|
|
1316
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1317
|
+
public func publishString(queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = StringResponseSerializer.defaultDataPreprocessor, encoding: Swift.String.Encoding? = nil, emptyResponseCodes: Swift.Set<Swift.Int> = StringResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Swift.Set<identomat.HTTPMethod> = StringResponseSerializer.defaultEmptyRequestMethods) -> identomat.DownloadResponsePublisher<Swift.String>
|
|
1318
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1319
|
+
public func publishDecodable<T>(type: T.Type = T.self, queue: Dispatch.DispatchQueue = .main, preprocessor: identomat.DataPreprocessor = DecodableResponseSerializer<T>.defaultDataPreprocessor, decoder: identomat.DataDecoder = JSONDecoder(), emptyResponseCodes: Swift.Set<Swift.Int> = DecodableResponseSerializer<T>.defaultEmptyResponseCodes, emptyResponseMethods: Swift.Set<identomat.HTTPMethod> = DecodableResponseSerializer<T>.defaultEmptyRequestMethods) -> identomat.DownloadResponsePublisher<T> where T : Swift.Decodable
|
|
1320
|
+
}
|
|
1321
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1322
|
+
extension DownloadResponsePublisher where Value == Foundation.URL? {
|
|
1323
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1324
|
+
public init(_ request: identomat.DownloadRequest, queue: Dispatch.DispatchQueue)
|
|
1325
|
+
}
|
|
1326
|
+
extension DownloadRequest {
|
|
1327
|
+
@available(OSX 10.15, iOS 13, watchOS 6, tvOS 13, *)
|
|
1328
|
+
public func publishUnserialized(on queue: Dispatch.DispatchQueue = .main) -> identomat.DownloadResponsePublisher<Foundation.URL?>
|
|
1329
|
+
}
|
|
1330
|
+
final public class URLEncodedFormEncoder {
|
|
1331
|
+
public enum ArrayEncoding {
|
|
1332
|
+
case brackets
|
|
1333
|
+
case noBrackets
|
|
1334
|
+
public static func == (a: identomat.URLEncodedFormEncoder.ArrayEncoding, b: identomat.URLEncodedFormEncoder.ArrayEncoding) -> Swift.Bool
|
|
1335
|
+
public var hashValue: Swift.Int {
|
|
1336
|
+
get
|
|
1337
|
+
}
|
|
1338
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1339
|
+
}
|
|
1340
|
+
public enum BoolEncoding {
|
|
1341
|
+
case numeric
|
|
1342
|
+
case literal
|
|
1343
|
+
public static func == (a: identomat.URLEncodedFormEncoder.BoolEncoding, b: identomat.URLEncodedFormEncoder.BoolEncoding) -> Swift.Bool
|
|
1344
|
+
public var hashValue: Swift.Int {
|
|
1345
|
+
get
|
|
1346
|
+
}
|
|
1347
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1348
|
+
}
|
|
1349
|
+
public enum DataEncoding {
|
|
1350
|
+
case deferredToData
|
|
1351
|
+
case base64
|
|
1352
|
+
case custom((Foundation.Data) throws -> Swift.String)
|
|
1353
|
+
}
|
|
1354
|
+
public enum DateEncoding {
|
|
1355
|
+
case deferredToDate
|
|
1356
|
+
case secondsSince1970
|
|
1357
|
+
case millisecondsSince1970
|
|
1358
|
+
case iso8601
|
|
1359
|
+
case formatted(Foundation.DateFormatter)
|
|
1360
|
+
case custom((Foundation.Date) throws -> Swift.String)
|
|
1361
|
+
}
|
|
1362
|
+
public enum KeyEncoding {
|
|
1363
|
+
case useDefaultKeys
|
|
1364
|
+
case convertToSnakeCase
|
|
1365
|
+
case convertToKebabCase
|
|
1366
|
+
case capitalized
|
|
1367
|
+
case uppercased
|
|
1368
|
+
case lowercased
|
|
1369
|
+
case custom((Swift.String) -> Swift.String)
|
|
1370
|
+
}
|
|
1371
|
+
public enum SpaceEncoding {
|
|
1372
|
+
case percentEscaped
|
|
1373
|
+
case plusReplaced
|
|
1374
|
+
public static func == (a: identomat.URLEncodedFormEncoder.SpaceEncoding, b: identomat.URLEncodedFormEncoder.SpaceEncoding) -> Swift.Bool
|
|
1375
|
+
public var hashValue: Swift.Int {
|
|
1376
|
+
get
|
|
1377
|
+
}
|
|
1378
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1379
|
+
}
|
|
1380
|
+
public enum Error : Swift.Error {
|
|
1381
|
+
case invalidRootObject(Swift.String)
|
|
1382
|
+
}
|
|
1383
|
+
final public let alphabetizeKeyValuePairs: Swift.Bool
|
|
1384
|
+
final public let arrayEncoding: identomat.URLEncodedFormEncoder.ArrayEncoding
|
|
1385
|
+
final public let boolEncoding: identomat.URLEncodedFormEncoder.BoolEncoding
|
|
1386
|
+
final public let dataEncoding: identomat.URLEncodedFormEncoder.DataEncoding
|
|
1387
|
+
final public let dateEncoding: identomat.URLEncodedFormEncoder.DateEncoding
|
|
1388
|
+
final public let keyEncoding: identomat.URLEncodedFormEncoder.KeyEncoding
|
|
1389
|
+
final public let spaceEncoding: identomat.URLEncodedFormEncoder.SpaceEncoding
|
|
1390
|
+
final public var allowedCharacters: Foundation.CharacterSet
|
|
1391
|
+
public init(alphabetizeKeyValuePairs: Swift.Bool = true, arrayEncoding: identomat.URLEncodedFormEncoder.ArrayEncoding = .brackets, boolEncoding: identomat.URLEncodedFormEncoder.BoolEncoding = .numeric, dataEncoding: identomat.URLEncodedFormEncoder.DataEncoding = .base64, dateEncoding: identomat.URLEncodedFormEncoder.DateEncoding = .deferredToDate, keyEncoding: identomat.URLEncodedFormEncoder.KeyEncoding = .useDefaultKeys, spaceEncoding: identomat.URLEncodedFormEncoder.SpaceEncoding = .percentEscaped, allowedCharacters: Foundation.CharacterSet = .afURLQueryAllowed)
|
|
1392
|
+
final public func encode(_ value: Swift.Encodable) throws -> Swift.String
|
|
1393
|
+
final public func encode(_ value: Swift.Encodable) throws -> Foundation.Data
|
|
1394
|
+
@objc deinit
|
|
1395
|
+
}
|
|
1396
|
+
extension CharacterSet {
|
|
1397
|
+
public static var afURLQueryAllowed: Foundation.CharacterSet
|
|
1398
|
+
}
|
|
1399
|
+
@_hasMissingDesignatedInitializers public class IdentomatManager {
|
|
1400
|
+
public static func getInstance() -> identomat.IdentomatManager
|
|
1401
|
+
public func setUp(token: Swift.String, flags: [Swift.String : Any], documentTypes: [Swift.Int])
|
|
1402
|
+
public func setHead1Font(fontname: Swift.String)
|
|
1403
|
+
public func setHead2Font(fontname: Swift.String)
|
|
1404
|
+
public func setBodyFont(fontname: Swift.String)
|
|
1405
|
+
public func setColors(color: [Swift.String : Swift.String])
|
|
1406
|
+
public func setLivenessIcons(neutralFace: UIKit.UIImage?, smileFace: UIKit.UIImage?)
|
|
1407
|
+
public func setBackButtonImage(image: UIKit.UIImage)
|
|
1408
|
+
public func setStringsTableName(tableName: Swift.String)
|
|
1409
|
+
public func setStrings(dict: [Swift.String : Any?])
|
|
1410
|
+
public func setBaseUrl(url: Swift.String)
|
|
1411
|
+
public func setLogo(view: UIKit.UIView)
|
|
1412
|
+
public func skipLegalAgreement()
|
|
1413
|
+
public func skipLivenessInstructions()
|
|
1414
|
+
public func callBack(callback: (() -> Swift.Void)?)
|
|
1415
|
+
public func getIdentomatView() -> UIKit.UINavigationController
|
|
1416
|
+
@objc deinit
|
|
1417
|
+
}
|
|
1418
|
+
public enum AFError : Swift.Error {
|
|
1419
|
+
public enum MultipartEncodingFailureReason {
|
|
1420
|
+
case bodyPartURLInvalid(url: Foundation.URL)
|
|
1421
|
+
case bodyPartFilenameInvalid(in: Foundation.URL)
|
|
1422
|
+
case bodyPartFileNotReachable(at: Foundation.URL)
|
|
1423
|
+
case bodyPartFileNotReachableWithError(atURL: Foundation.URL, error: Swift.Error)
|
|
1424
|
+
case bodyPartFileIsDirectory(at: Foundation.URL)
|
|
1425
|
+
case bodyPartFileSizeNotAvailable(at: Foundation.URL)
|
|
1426
|
+
case bodyPartFileSizeQueryFailedWithError(forURL: Foundation.URL, error: Swift.Error)
|
|
1427
|
+
case bodyPartInputStreamCreationFailed(for: Foundation.URL)
|
|
1428
|
+
case outputStreamCreationFailed(for: Foundation.URL)
|
|
1429
|
+
case outputStreamFileAlreadyExists(at: Foundation.URL)
|
|
1430
|
+
case outputStreamURLInvalid(url: Foundation.URL)
|
|
1431
|
+
case outputStreamWriteFailed(error: Swift.Error)
|
|
1432
|
+
case inputStreamReadFailed(error: Swift.Error)
|
|
1433
|
+
}
|
|
1434
|
+
public enum ParameterEncodingFailureReason {
|
|
1435
|
+
case missingURL
|
|
1436
|
+
case jsonEncodingFailed(error: Swift.Error)
|
|
1437
|
+
case customEncodingFailed(error: Swift.Error)
|
|
1438
|
+
}
|
|
1439
|
+
public enum ParameterEncoderFailureReason {
|
|
1440
|
+
public enum RequiredComponent {
|
|
1441
|
+
case url
|
|
1442
|
+
case httpMethod(rawValue: Swift.String)
|
|
1443
|
+
}
|
|
1444
|
+
case missingRequiredComponent(identomat.AFError.ParameterEncoderFailureReason.RequiredComponent)
|
|
1445
|
+
case encoderFailed(error: Swift.Error)
|
|
1446
|
+
}
|
|
1447
|
+
public enum ResponseValidationFailureReason {
|
|
1448
|
+
case dataFileNil
|
|
1449
|
+
case dataFileReadFailed(at: Foundation.URL)
|
|
1450
|
+
case missingContentType(acceptableContentTypes: [Swift.String])
|
|
1451
|
+
case unacceptableContentType(acceptableContentTypes: [Swift.String], responseContentType: Swift.String)
|
|
1452
|
+
case unacceptableStatusCode(code: Swift.Int)
|
|
1453
|
+
case customValidationFailed(error: Swift.Error)
|
|
1454
|
+
}
|
|
1455
|
+
public enum ResponseSerializationFailureReason {
|
|
1456
|
+
case inputDataNilOrZeroLength
|
|
1457
|
+
case inputFileNil
|
|
1458
|
+
case inputFileReadFailed(at: Foundation.URL)
|
|
1459
|
+
case stringSerializationFailed(encoding: Swift.String.Encoding)
|
|
1460
|
+
case jsonSerializationFailed(error: Swift.Error)
|
|
1461
|
+
case decodingFailed(error: Swift.Error)
|
|
1462
|
+
case customSerializationFailed(error: Swift.Error)
|
|
1463
|
+
case invalidEmptyResponse(type: Swift.String)
|
|
1464
|
+
}
|
|
1465
|
+
public enum ServerTrustFailureReason {
|
|
1466
|
+
public struct Output {
|
|
1467
|
+
public let host: Swift.String
|
|
1468
|
+
public let trust: Security.SecTrust
|
|
1469
|
+
public let status: Darwin.OSStatus
|
|
1470
|
+
public let result: Security.SecTrustResultType
|
|
1471
|
+
}
|
|
1472
|
+
case noRequiredEvaluator(host: Swift.String)
|
|
1473
|
+
case noCertificatesFound
|
|
1474
|
+
case noPublicKeysFound
|
|
1475
|
+
case policyApplicationFailed(trust: Security.SecTrust, policy: Security.SecPolicy, status: Darwin.OSStatus)
|
|
1476
|
+
case settingAnchorCertificatesFailed(status: Darwin.OSStatus, certificates: [Security.SecCertificate])
|
|
1477
|
+
case revocationPolicyCreationFailed
|
|
1478
|
+
case trustEvaluationFailed(error: Swift.Error?)
|
|
1479
|
+
case defaultEvaluationFailed(output: identomat.AFError.ServerTrustFailureReason.Output)
|
|
1480
|
+
case hostValidationFailed(output: identomat.AFError.ServerTrustFailureReason.Output)
|
|
1481
|
+
case revocationCheckFailed(output: identomat.AFError.ServerTrustFailureReason.Output, options: identomat.RevocationTrustEvaluator.Options)
|
|
1482
|
+
case certificatePinningFailed(host: Swift.String, trust: Security.SecTrust, pinnedCertificates: [Security.SecCertificate], serverCertificates: [Security.SecCertificate])
|
|
1483
|
+
case publicKeyPinningFailed(host: Swift.String, trust: Security.SecTrust, pinnedKeys: [Security.SecKey], serverKeys: [Security.SecKey])
|
|
1484
|
+
case customEvaluationFailed(error: Swift.Error)
|
|
1485
|
+
}
|
|
1486
|
+
public enum URLRequestValidationFailureReason {
|
|
1487
|
+
case bodyDataInGETRequest(Foundation.Data)
|
|
1488
|
+
}
|
|
1489
|
+
case createUploadableFailed(error: Swift.Error)
|
|
1490
|
+
case createURLRequestFailed(error: Swift.Error)
|
|
1491
|
+
case downloadedFileMoveFailed(error: Swift.Error, source: Foundation.URL, destination: Foundation.URL)
|
|
1492
|
+
case explicitlyCancelled
|
|
1493
|
+
case invalidURL(url: identomat.URLConvertible)
|
|
1494
|
+
case multipartEncodingFailed(reason: identomat.AFError.MultipartEncodingFailureReason)
|
|
1495
|
+
case parameterEncodingFailed(reason: identomat.AFError.ParameterEncodingFailureReason)
|
|
1496
|
+
case parameterEncoderFailed(reason: identomat.AFError.ParameterEncoderFailureReason)
|
|
1497
|
+
case requestAdaptationFailed(error: Swift.Error)
|
|
1498
|
+
case requestRetryFailed(retryError: Swift.Error, originalError: Swift.Error)
|
|
1499
|
+
case responseValidationFailed(reason: identomat.AFError.ResponseValidationFailureReason)
|
|
1500
|
+
case responseSerializationFailed(reason: identomat.AFError.ResponseSerializationFailureReason)
|
|
1501
|
+
case serverTrustEvaluationFailed(reason: identomat.AFError.ServerTrustFailureReason)
|
|
1502
|
+
case sessionDeinitialized
|
|
1503
|
+
case sessionInvalidated(error: Swift.Error?)
|
|
1504
|
+
case sessionTaskFailed(error: Swift.Error)
|
|
1505
|
+
case urlRequestValidationFailed(reason: identomat.AFError.URLRequestValidationFailureReason)
|
|
1506
|
+
}
|
|
1507
|
+
extension Error {
|
|
1508
|
+
public var asAFError: identomat.AFError? {
|
|
1509
|
+
get
|
|
1510
|
+
}
|
|
1511
|
+
public func asAFError(orFailWith message: @autoclosure () -> Swift.String, file: Swift.StaticString = #file, line: Swift.UInt = #line) -> identomat.AFError
|
|
1512
|
+
}
|
|
1513
|
+
extension AFError {
|
|
1514
|
+
public var isSessionDeinitializedError: Swift.Bool {
|
|
1515
|
+
get
|
|
1516
|
+
}
|
|
1517
|
+
public var isSessionInvalidatedError: Swift.Bool {
|
|
1518
|
+
get
|
|
1519
|
+
}
|
|
1520
|
+
public var isExplicitlyCancelledError: Swift.Bool {
|
|
1521
|
+
get
|
|
1522
|
+
}
|
|
1523
|
+
public var isInvalidURLError: Swift.Bool {
|
|
1524
|
+
get
|
|
1525
|
+
}
|
|
1526
|
+
public var isParameterEncodingError: Swift.Bool {
|
|
1527
|
+
get
|
|
1528
|
+
}
|
|
1529
|
+
public var isParameterEncoderError: Swift.Bool {
|
|
1530
|
+
get
|
|
1531
|
+
}
|
|
1532
|
+
public var isMultipartEncodingError: Swift.Bool {
|
|
1533
|
+
get
|
|
1534
|
+
}
|
|
1535
|
+
public var isRequestAdaptationError: Swift.Bool {
|
|
1536
|
+
get
|
|
1537
|
+
}
|
|
1538
|
+
public var isResponseValidationError: Swift.Bool {
|
|
1539
|
+
get
|
|
1540
|
+
}
|
|
1541
|
+
public var isResponseSerializationError: Swift.Bool {
|
|
1542
|
+
get
|
|
1543
|
+
}
|
|
1544
|
+
public var isServerTrustEvaluationError: Swift.Bool {
|
|
1545
|
+
get
|
|
1546
|
+
}
|
|
1547
|
+
public var isRequestRetryError: Swift.Bool {
|
|
1548
|
+
get
|
|
1549
|
+
}
|
|
1550
|
+
public var isCreateUploadableError: Swift.Bool {
|
|
1551
|
+
get
|
|
1552
|
+
}
|
|
1553
|
+
public var isCreateURLRequestError: Swift.Bool {
|
|
1554
|
+
get
|
|
1555
|
+
}
|
|
1556
|
+
public var isDownloadedFileMoveError: Swift.Bool {
|
|
1557
|
+
get
|
|
1558
|
+
}
|
|
1559
|
+
public var isSessionTaskError: Swift.Bool {
|
|
1560
|
+
get
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
extension AFError {
|
|
1564
|
+
public var urlConvertible: identomat.URLConvertible? {
|
|
1565
|
+
get
|
|
1566
|
+
}
|
|
1567
|
+
public var url: Foundation.URL? {
|
|
1568
|
+
get
|
|
1569
|
+
}
|
|
1570
|
+
public var underlyingError: Swift.Error? {
|
|
1571
|
+
get
|
|
1572
|
+
}
|
|
1573
|
+
public var acceptableContentTypes: [Swift.String]? {
|
|
1574
|
+
get
|
|
1575
|
+
}
|
|
1576
|
+
public var responseContentType: Swift.String? {
|
|
1577
|
+
get
|
|
1578
|
+
}
|
|
1579
|
+
public var responseCode: Swift.Int? {
|
|
1580
|
+
get
|
|
1581
|
+
}
|
|
1582
|
+
public var failedStringEncoding: Swift.String.Encoding? {
|
|
1583
|
+
get
|
|
1584
|
+
}
|
|
1585
|
+
public var sourceURL: Foundation.URL? {
|
|
1586
|
+
get
|
|
1587
|
+
}
|
|
1588
|
+
public var destinationURL: Foundation.URL? {
|
|
1589
|
+
get
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
extension AFError : Foundation.LocalizedError {
|
|
1593
|
+
public var errorDescription: Swift.String? {
|
|
1594
|
+
get
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
public typealias Parameters = [Swift.String : Any]
|
|
1598
|
+
public protocol ParameterEncoding {
|
|
1599
|
+
func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
|
|
1600
|
+
}
|
|
1601
|
+
public struct URLEncoding : identomat.ParameterEncoding {
|
|
1602
|
+
public enum Destination {
|
|
1603
|
+
case methodDependent
|
|
1604
|
+
case queryString
|
|
1605
|
+
case httpBody
|
|
1606
|
+
public static func == (a: identomat.URLEncoding.Destination, b: identomat.URLEncoding.Destination) -> Swift.Bool
|
|
1607
|
+
public var hashValue: Swift.Int {
|
|
1608
|
+
get
|
|
1609
|
+
}
|
|
1610
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1611
|
+
}
|
|
1612
|
+
public enum ArrayEncoding {
|
|
1613
|
+
case brackets
|
|
1614
|
+
case noBrackets
|
|
1615
|
+
public static func == (a: identomat.URLEncoding.ArrayEncoding, b: identomat.URLEncoding.ArrayEncoding) -> Swift.Bool
|
|
1616
|
+
public var hashValue: Swift.Int {
|
|
1617
|
+
get
|
|
1618
|
+
}
|
|
1619
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1620
|
+
}
|
|
1621
|
+
public enum BoolEncoding {
|
|
1622
|
+
case numeric
|
|
1623
|
+
case literal
|
|
1624
|
+
public static func == (a: identomat.URLEncoding.BoolEncoding, b: identomat.URLEncoding.BoolEncoding) -> Swift.Bool
|
|
1625
|
+
public var hashValue: Swift.Int {
|
|
1626
|
+
get
|
|
1627
|
+
}
|
|
1628
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1629
|
+
}
|
|
1630
|
+
public static var `default`: identomat.URLEncoding {
|
|
1631
|
+
get
|
|
1632
|
+
}
|
|
1633
|
+
public static var queryString: identomat.URLEncoding {
|
|
1634
|
+
get
|
|
1635
|
+
}
|
|
1636
|
+
public static var httpBody: identomat.URLEncoding {
|
|
1637
|
+
get
|
|
1638
|
+
}
|
|
1639
|
+
public let destination: identomat.URLEncoding.Destination
|
|
1640
|
+
public let arrayEncoding: identomat.URLEncoding.ArrayEncoding
|
|
1641
|
+
public let boolEncoding: identomat.URLEncoding.BoolEncoding
|
|
1642
|
+
public init(destination: identomat.URLEncoding.Destination = .methodDependent, arrayEncoding: identomat.URLEncoding.ArrayEncoding = .brackets, boolEncoding: identomat.URLEncoding.BoolEncoding = .numeric)
|
|
1643
|
+
public func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
|
|
1644
|
+
public func queryComponents(fromKey key: Swift.String, value: Any) -> [(Swift.String, Swift.String)]
|
|
1645
|
+
public func escape(_ string: Swift.String) -> Swift.String
|
|
1646
|
+
}
|
|
1647
|
+
public struct JSONEncoding : identomat.ParameterEncoding {
|
|
1648
|
+
public static var `default`: identomat.JSONEncoding {
|
|
1649
|
+
get
|
|
1650
|
+
}
|
|
1651
|
+
public static var prettyPrinted: identomat.JSONEncoding {
|
|
1652
|
+
get
|
|
1653
|
+
}
|
|
1654
|
+
public let options: Foundation.JSONSerialization.WritingOptions
|
|
1655
|
+
public init(options: Foundation.JSONSerialization.WritingOptions = [])
|
|
1656
|
+
public func encode(_ urlRequest: identomat.URLRequestConvertible, with parameters: identomat.Parameters?) throws -> Foundation.URLRequest
|
|
1657
|
+
public func encode(_ urlRequest: identomat.URLRequestConvertible, withJSONObject jsonObject: Any? = nil) throws -> Foundation.URLRequest
|
|
1658
|
+
}
|
|
1659
|
+
public protocol URLConvertible {
|
|
1660
|
+
func asURL() throws -> Foundation.URL
|
|
1661
|
+
}
|
|
1662
|
+
extension String : identomat.URLConvertible {
|
|
1663
|
+
public func asURL() throws -> Foundation.URL
|
|
1664
|
+
}
|
|
1665
|
+
extension URL : identomat.URLConvertible {
|
|
1666
|
+
public func asURL() throws -> Foundation.URL
|
|
1667
|
+
}
|
|
1668
|
+
extension URLComponents : identomat.URLConvertible {
|
|
1669
|
+
public func asURL() throws -> Foundation.URL
|
|
1670
|
+
}
|
|
1671
|
+
public protocol URLRequestConvertible {
|
|
1672
|
+
func asURLRequest() throws -> Foundation.URLRequest
|
|
1673
|
+
}
|
|
1674
|
+
extension URLRequestConvertible {
|
|
1675
|
+
public var urlRequest: Foundation.URLRequest? {
|
|
1676
|
+
get
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
extension URLRequest : identomat.URLRequestConvertible {
|
|
1680
|
+
public func asURLRequest() throws -> Foundation.URLRequest
|
|
1681
|
+
}
|
|
1682
|
+
extension URLRequest {
|
|
1683
|
+
public init(url: identomat.URLConvertible, method: identomat.HTTPMethod, headers: identomat.HTTPHeaders? = nil) throws
|
|
1684
|
+
}
|
|
1685
|
+
public struct HTTPHeaders {
|
|
1686
|
+
public init()
|
|
1687
|
+
public init(_ headers: [identomat.HTTPHeader])
|
|
1688
|
+
public init(_ dictionary: [Swift.String : Swift.String])
|
|
1689
|
+
public mutating func add(name: Swift.String, value: Swift.String)
|
|
1690
|
+
public mutating func add(_ header: identomat.HTTPHeader)
|
|
1691
|
+
public mutating func update(name: Swift.String, value: Swift.String)
|
|
1692
|
+
public mutating func update(_ header: identomat.HTTPHeader)
|
|
1693
|
+
public mutating func remove(name: Swift.String)
|
|
1694
|
+
public mutating func sort()
|
|
1695
|
+
public func sorted() -> identomat.HTTPHeaders
|
|
1696
|
+
public func value(for name: Swift.String) -> Swift.String?
|
|
1697
|
+
public subscript(name: Swift.String) -> Swift.String? {
|
|
1698
|
+
get
|
|
1699
|
+
set(newValue)
|
|
1700
|
+
}
|
|
1701
|
+
public var dictionary: [Swift.String : Swift.String] {
|
|
1702
|
+
get
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
extension HTTPHeaders : Swift.ExpressibleByDictionaryLiteral {
|
|
1706
|
+
public init(dictionaryLiteral elements: (Swift.String, Swift.String)...)
|
|
1707
|
+
public typealias Key = Swift.String
|
|
1708
|
+
public typealias Value = Swift.String
|
|
1709
|
+
}
|
|
1710
|
+
extension HTTPHeaders : Swift.ExpressibleByArrayLiteral {
|
|
1711
|
+
public init(arrayLiteral elements: identomat.HTTPHeader...)
|
|
1712
|
+
public typealias ArrayLiteralElement = identomat.HTTPHeader
|
|
1713
|
+
}
|
|
1714
|
+
extension HTTPHeaders : Swift.Sequence {
|
|
1715
|
+
public func makeIterator() -> Swift.IndexingIterator<[identomat.HTTPHeader]>
|
|
1716
|
+
}
|
|
1717
|
+
extension HTTPHeaders : Swift.Collection {
|
|
1718
|
+
public var startIndex: Swift.Int {
|
|
1719
|
+
get
|
|
1720
|
+
}
|
|
1721
|
+
public var endIndex: Swift.Int {
|
|
1722
|
+
get
|
|
1723
|
+
}
|
|
1724
|
+
public subscript(position: Swift.Int) -> identomat.HTTPHeader {
|
|
1725
|
+
get
|
|
1726
|
+
}
|
|
1727
|
+
public func index(after i: Swift.Int) -> Swift.Int
|
|
1728
|
+
public typealias Element = identomat.HTTPHeader
|
|
1729
|
+
public typealias Index = Swift.Int
|
|
1730
|
+
public typealias Iterator = Swift.IndexingIterator<[identomat.HTTPHeader]>
|
|
1731
|
+
public typealias SubSequence = Swift.Slice<identomat.HTTPHeaders>
|
|
1732
|
+
public typealias Indices = Swift.DefaultIndices<identomat.HTTPHeaders>
|
|
1733
|
+
}
|
|
1734
|
+
extension HTTPHeaders : Swift.CustomStringConvertible {
|
|
1735
|
+
public var description: Swift.String {
|
|
1736
|
+
get
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
public struct HTTPHeader : Swift.Hashable {
|
|
1740
|
+
public let name: Swift.String
|
|
1741
|
+
public let value: Swift.String
|
|
1742
|
+
public init(name: Swift.String, value: Swift.String)
|
|
1743
|
+
public var hashValue: Swift.Int {
|
|
1744
|
+
get
|
|
1745
|
+
}
|
|
1746
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1747
|
+
public static func == (a: identomat.HTTPHeader, b: identomat.HTTPHeader) -> Swift.Bool
|
|
1748
|
+
}
|
|
1749
|
+
extension HTTPHeader : Swift.CustomStringConvertible {
|
|
1750
|
+
public var description: Swift.String {
|
|
1751
|
+
get
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
extension HTTPHeader {
|
|
1755
|
+
public static func accept(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1756
|
+
public static func acceptCharset(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1757
|
+
public static func acceptLanguage(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1758
|
+
public static func acceptEncoding(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1759
|
+
public static func authorization(username: Swift.String, password: Swift.String) -> identomat.HTTPHeader
|
|
1760
|
+
public static func authorization(bearerToken: Swift.String) -> identomat.HTTPHeader
|
|
1761
|
+
public static func authorization(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1762
|
+
public static func contentDisposition(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1763
|
+
public static func contentType(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1764
|
+
public static func userAgent(_ value: Swift.String) -> identomat.HTTPHeader
|
|
1765
|
+
}
|
|
1766
|
+
extension HTTPHeaders {
|
|
1767
|
+
public static var `default`: identomat.HTTPHeaders
|
|
1768
|
+
}
|
|
1769
|
+
extension HTTPHeader {
|
|
1770
|
+
public static var defaultAcceptEncoding: identomat.HTTPHeader
|
|
1771
|
+
public static var defaultAcceptLanguage: identomat.HTTPHeader
|
|
1772
|
+
public static var defaultUserAgent: identomat.HTTPHeader
|
|
1773
|
+
}
|
|
1774
|
+
extension URLRequest {
|
|
1775
|
+
public var headers: identomat.HTTPHeaders {
|
|
1776
|
+
get
|
|
1777
|
+
set(newValue)
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
extension HTTPURLResponse {
|
|
1781
|
+
public var headers: identomat.HTTPHeaders {
|
|
1782
|
+
get
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
extension URLSessionConfiguration {
|
|
1786
|
+
public var headers: identomat.HTTPHeaders {
|
|
1787
|
+
get
|
|
1788
|
+
set(newValue)
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
public protocol CachedResponseHandler {
|
|
1792
|
+
func dataTask(_ task: Foundation.URLSessionDataTask, willCacheResponse response: Foundation.CachedURLResponse, completion: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
|
|
1793
|
+
}
|
|
1794
|
+
public struct ResponseCacher {
|
|
1795
|
+
public enum Behavior {
|
|
1796
|
+
case cache
|
|
1797
|
+
case doNotCache
|
|
1798
|
+
case modify((Foundation.URLSessionDataTask, Foundation.CachedURLResponse) -> Foundation.CachedURLResponse?)
|
|
1799
|
+
}
|
|
1800
|
+
public static var cache: identomat.ResponseCacher
|
|
1801
|
+
public static var doNotCache: identomat.ResponseCacher
|
|
1802
|
+
public let behavior: identomat.ResponseCacher.Behavior
|
|
1803
|
+
public init(behavior: identomat.ResponseCacher.Behavior)
|
|
1804
|
+
}
|
|
1805
|
+
extension ResponseCacher : identomat.CachedResponseHandler {
|
|
1806
|
+
public func dataTask(_ task: Foundation.URLSessionDataTask, willCacheResponse response: Foundation.CachedURLResponse, completion: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
|
|
1807
|
+
}
|
|
1808
|
+
@_hasMissingDesignatedInitializers open class NetworkReachabilityManager {
|
|
1809
|
+
public enum NetworkReachabilityStatus {
|
|
1810
|
+
case unknown
|
|
1811
|
+
case notReachable
|
|
1812
|
+
case reachable(identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType)
|
|
1813
|
+
public enum ConnectionType {
|
|
1814
|
+
case ethernetOrWiFi
|
|
1815
|
+
case cellular
|
|
1816
|
+
public static func == (a: identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType, b: identomat.NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType) -> Swift.Bool
|
|
1817
|
+
public var hashValue: Swift.Int {
|
|
1818
|
+
get
|
|
1819
|
+
}
|
|
1820
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
public typealias Listener = (identomat.NetworkReachabilityManager.NetworkReachabilityStatus) -> Swift.Void
|
|
1824
|
+
public static var `default`: identomat.NetworkReachabilityManager?
|
|
1825
|
+
open var isReachable: Swift.Bool {
|
|
1826
|
+
get
|
|
1827
|
+
}
|
|
1828
|
+
open var isReachableOnCellular: Swift.Bool {
|
|
1829
|
+
get
|
|
1830
|
+
}
|
|
1831
|
+
open var isReachableOnEthernetOrWiFi: Swift.Bool {
|
|
1832
|
+
get
|
|
1833
|
+
}
|
|
1834
|
+
final public let reachabilityQueue: Dispatch.DispatchQueue
|
|
1835
|
+
open var flags: SystemConfiguration.SCNetworkReachabilityFlags? {
|
|
1836
|
+
get
|
|
1837
|
+
}
|
|
1838
|
+
open var status: identomat.NetworkReachabilityManager.NetworkReachabilityStatus {
|
|
1839
|
+
get
|
|
1840
|
+
}
|
|
1841
|
+
public convenience init?(host: Swift.String)
|
|
1842
|
+
public convenience init?()
|
|
1843
|
+
@objc deinit
|
|
1844
|
+
@discardableResult
|
|
1845
|
+
open func startListening(onQueue queue: Dispatch.DispatchQueue = .main, onUpdatePerforming listener: @escaping identomat.NetworkReachabilityManager.Listener) -> Swift.Bool
|
|
1846
|
+
open func stopListening()
|
|
1847
|
+
}
|
|
1848
|
+
extension NetworkReachabilityManager.NetworkReachabilityStatus : Swift.Equatable {
|
|
1849
|
+
public static func == (a: identomat.NetworkReachabilityManager.NetworkReachabilityStatus, b: identomat.NetworkReachabilityManager.NetworkReachabilityStatus) -> Swift.Bool
|
|
1850
|
+
}
|
|
1851
|
+
open class RetryPolicy : identomat.RequestInterceptor {
|
|
1852
|
+
public static var defaultRetryLimit: Swift.UInt
|
|
1853
|
+
public static var defaultExponentialBackoffBase: Swift.UInt
|
|
1854
|
+
public static var defaultExponentialBackoffScale: Swift.Double
|
|
1855
|
+
public static var defaultRetryableHTTPMethods: Swift.Set<identomat.HTTPMethod>
|
|
1856
|
+
public static var defaultRetryableHTTPStatusCodes: Swift.Set<Swift.Int>
|
|
1857
|
+
public static var defaultRetryableURLErrorCodes: Swift.Set<Foundation.URLError.Code>
|
|
1858
|
+
final public let retryLimit: Swift.UInt
|
|
1859
|
+
final public let exponentialBackoffBase: Swift.UInt
|
|
1860
|
+
final public let exponentialBackoffScale: Swift.Double
|
|
1861
|
+
final public let retryableHTTPMethods: Swift.Set<identomat.HTTPMethod>
|
|
1862
|
+
final public let retryableHTTPStatusCodes: Swift.Set<Swift.Int>
|
|
1863
|
+
final public let retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code>
|
|
1864
|
+
public init(retryLimit: Swift.UInt = RetryPolicy.defaultRetryLimit, exponentialBackoffBase: Swift.UInt = RetryPolicy.defaultExponentialBackoffBase, exponentialBackoffScale: Swift.Double = RetryPolicy.defaultExponentialBackoffScale, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = RetryPolicy.defaultRetryableHTTPMethods, retryableHTTPStatusCodes: Swift.Set<Swift.Int> = RetryPolicy.defaultRetryableHTTPStatusCodes, retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code> = RetryPolicy.defaultRetryableURLErrorCodes)
|
|
1865
|
+
open func retry(_ request: identomat.Request, for session: identomat.Session, dueTo error: Swift.Error, completion: @escaping (identomat.RetryResult) -> Swift.Void)
|
|
1866
|
+
open func shouldRetry(request: identomat.Request, dueTo error: Swift.Error) -> Swift.Bool
|
|
1867
|
+
@objc deinit
|
|
1868
|
+
}
|
|
1869
|
+
open class ConnectionLostRetryPolicy : identomat.RetryPolicy {
|
|
1870
|
+
public init(retryLimit: Swift.UInt = RetryPolicy.defaultRetryLimit, exponentialBackoffBase: Swift.UInt = RetryPolicy.defaultExponentialBackoffBase, exponentialBackoffScale: Swift.Double = RetryPolicy.defaultExponentialBackoffScale, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = RetryPolicy.defaultRetryableHTTPMethods)
|
|
1871
|
+
@objc deinit
|
|
1872
|
+
override public init(retryLimit: Swift.UInt = super, exponentialBackoffBase: Swift.UInt = super, exponentialBackoffScale: Swift.Double = super, retryableHTTPMethods: Swift.Set<identomat.HTTPMethod> = super, retryableHTTPStatusCodes: Swift.Set<Swift.Int> = super, retryableURLErrorCodes: Swift.Set<Foundation.URLError.Code> = super)
|
|
1873
|
+
}
|
|
1874
|
+
extension Request {
|
|
1875
|
+
public static var didResumeNotification: Foundation.Notification.Name
|
|
1876
|
+
public static var didSuspendNotification: Foundation.Notification.Name
|
|
1877
|
+
public static var didCancelNotification: Foundation.Notification.Name
|
|
1878
|
+
public static var didFinishNotification: Foundation.Notification.Name
|
|
1879
|
+
public static var didResumeTaskNotification: Foundation.Notification.Name
|
|
1880
|
+
public static var didSuspendTaskNotification: Foundation.Notification.Name
|
|
1881
|
+
public static var didCancelTaskNotification: Foundation.Notification.Name
|
|
1882
|
+
public static var didCompleteTaskNotification: Foundation.Notification.Name
|
|
1883
|
+
}
|
|
1884
|
+
extension Notification {
|
|
1885
|
+
public var request: identomat.Request? {
|
|
1886
|
+
get
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
@_hasMissingDesignatedInitializers final public class AlamofireNotifications : identomat.EventMonitor {
|
|
1890
|
+
final public func requestDidResume(_ request: identomat.Request)
|
|
1891
|
+
final public func requestDidSuspend(_ request: identomat.Request)
|
|
1892
|
+
final public func requestDidCancel(_ request: identomat.Request)
|
|
1893
|
+
final public func requestDidFinish(_ request: identomat.Request)
|
|
1894
|
+
final public func request(_ request: identomat.Request, didResumeTask task: Foundation.URLSessionTask)
|
|
1895
|
+
final public func request(_ request: identomat.Request, didSuspendTask task: Foundation.URLSessionTask)
|
|
1896
|
+
final public func request(_ request: identomat.Request, didCancelTask task: Foundation.URLSessionTask)
|
|
1897
|
+
final public func request(_ request: identomat.Request, didCompleteTask task: Foundation.URLSessionTask, with error: identomat.AFError?)
|
|
1898
|
+
@objc deinit
|
|
1899
|
+
}
|
|
1900
|
+
public struct AlamofireExtension<ExtendedType> {
|
|
1901
|
+
public var type: ExtendedType {
|
|
1902
|
+
get
|
|
1903
|
+
}
|
|
1904
|
+
public init(_ type: ExtendedType)
|
|
1905
|
+
}
|
|
1906
|
+
public protocol AlamofireExtended {
|
|
1907
|
+
associatedtype ExtendedType
|
|
1908
|
+
static var af: identomat.AlamofireExtension<Self.ExtendedType>.Type { get set }
|
|
1909
|
+
var af: identomat.AlamofireExtension<Self.ExtendedType> { get set }
|
|
1910
|
+
}
|
|
1911
|
+
extension AlamofireExtended {
|
|
1912
|
+
public static var af: identomat.AlamofireExtension<Self>.Type {
|
|
1913
|
+
get
|
|
1914
|
+
set(newValue)
|
|
1915
|
+
}
|
|
1916
|
+
public var af: identomat.AlamofireExtension<Self> {
|
|
1917
|
+
get
|
|
1918
|
+
set(newValue)
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
@objc open class SessionDelegate : ObjectiveC.NSObject {
|
|
1922
|
+
public init(fileManager: Foundation.FileManager = .default)
|
|
1923
|
+
@objc deinit
|
|
1924
|
+
@objc override dynamic public init()
|
|
1925
|
+
}
|
|
1926
|
+
extension SessionDelegate : Foundation.URLSessionDelegate {
|
|
1927
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, didBecomeInvalidWithError error: Swift.Error?)
|
|
1928
|
+
}
|
|
1929
|
+
extension SessionDelegate : Foundation.URLSessionTaskDelegate {
|
|
1930
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didReceive challenge: Foundation.URLAuthenticationChallenge, completionHandler: @escaping (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void)
|
|
1931
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didSendBodyData bytesSent: Swift.Int64, totalBytesSent: Swift.Int64, totalBytesExpectedToSend: Swift.Int64)
|
|
1932
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, needNewBodyStream completionHandler: @escaping (Foundation.InputStream?) -> Swift.Void)
|
|
1933
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, willPerformHTTPRedirection response: Foundation.HTTPURLResponse, newRequest request: Foundation.URLRequest, completionHandler: @escaping (Foundation.URLRequest?) -> Swift.Void)
|
|
1934
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didFinishCollecting metrics: Foundation.URLSessionTaskMetrics)
|
|
1935
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, task: Foundation.URLSessionTask, didCompleteWithError error: Swift.Error?)
|
|
1936
|
+
@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
|
|
1937
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, taskIsWaitingForConnectivity task: Foundation.URLSessionTask)
|
|
1938
|
+
}
|
|
1939
|
+
extension SessionDelegate : Foundation.URLSessionDataDelegate {
|
|
1940
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, didReceive data: Foundation.Data)
|
|
1941
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, dataTask: Foundation.URLSessionDataTask, willCacheResponse proposedResponse: Foundation.CachedURLResponse, completionHandler: @escaping (Foundation.CachedURLResponse?) -> Swift.Void)
|
|
1942
|
+
}
|
|
1943
|
+
extension SessionDelegate : Foundation.URLSessionDownloadDelegate {
|
|
1944
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didResumeAtOffset fileOffset: Swift.Int64, expectedTotalBytes: Swift.Int64)
|
|
1945
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didWriteData bytesWritten: Swift.Int64, totalBytesWritten: Swift.Int64, totalBytesExpectedToWrite: Swift.Int64)
|
|
1946
|
+
@objc dynamic open func urlSession(_ session: Foundation.URLSession, downloadTask: Foundation.URLSessionDownloadTask, didFinishDownloadingTo location: Foundation.URL)
|
|
1947
|
+
}
|