SLRequestHandler
The callback handler for a request.
Declaration
typealias SLRequestHandler = (Data?, HTTPURLResponse?, (any Error)?) -> VoidDiscussion
The parameters for this handler are:
responseDataThe data returned by the request. The format of this data is dependent on the target service.
urlResponseThe URL response returned by the request that includes the HTTP response codes.
errorAn error identifier.
Possible values are dependent on the target service and are documented by the service provider. For links to documentation for the supported services, see Table 1 in SLRequest.