OAuth2DataRequest
public struct OAuth2DataRequest
A struct encapsulating an OAuth2 request made to obtain data.
-
The URLRequest to be executed.
Declaration
Swift
public let request: URLRequest
-
The callback executed when the request is done.
Declaration
Swift
public let callback: (OAuth2Response) -> Void
-
Any context to associate with the request.
Declaration
Swift
public var context: Any?
-
The one initializer.
Declaration
Swift
public init(request: URLRequest, callback: @escaping (OAuth2Response) -> Void)