XPSDKRequest
open class XPSDKRequest : NSObject, URLSessionDelegate
XPSDKRequest class represents the request object that is being sent to the Mobile Server
-
Name of command for which request is sent
Declaration
Swift
open internal(set) var commandName: String
-
Cancel session method
Declaration
Swift
public func cancelSession()
-
Execute request
Declaration
Swift
open func execute()
-
urlSession: Handling of receiving url authentication challengde method
Declaration
Swift
open func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
Parameters
session
the URL Session
challenge
the received challenge
completionHandler
the completion handler block