You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Alamofire-SwiftyJSON.swift
+67-40Lines changed: 67 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -14,47 +14,74 @@ import SwiftyJSON
14
14
// MARK: - Request for Swift JSON
15
15
16
16
extensionRequest{
17
-
18
-
/**
19
-
Adds a handler to be called once the request has finished.
20
-
21
-
:param: completionHandler A closure to be executed once the request has finished. The closure takes 4 arguments: the URL request, the URL response, if one was received, the SwiftyJSON enum, if one could be created from the URL response and data, and any error produced while creating the SwiftyJSON enum.
Adds a handler to be called once the request has finished.
31
-
32
-
:param: queue The queue on which the completion handler is dispatched.
33
-
:param: options The JSON serialization reading options. `.AllowFragments` by default.
34
-
:param: completionHandler A closure to be executed once the request has finished. The closure takes 4 arguments: the URL request, the URL response, if one was received, the SwiftyJSON enum, if one could be created from the URL response and data, and any error produced while creating the SwiftyJSON enum.
// With Alamofire 3, completionHandler returns a Response struct instead of request, response, result.
41
-
//For more information about Response struct see: https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md
0 commit comments