Skip to content

Commit 67abf12

Browse files
committed
Update 1.0 Migration Guide.md
1 parent dd6288f commit 67abf12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Docs/1.0 Migration Guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ API facade is somewhat limited in terms of functionality. It's hard to wrap ever
1616

1717
#### Hard customization
1818

19-
Using facade sometimes locks you into artificial barriers that are created only to prevent you from knowing that you are using Alamofire. For example, there's a feature on Alamofire.Request, that allows you to print it's cURL to console using debugDescription variable. However, if used through API facade, you no longer know that you are using Alamofire.Request, then how do you allow using such feature without major headaches?
19+
Using facade sometimes locks you into artificial barriers that are created only to prevent you from knowing that you are using Alamofire. For example, there's a feature on `Alamofire.Request`, that allows you to print it's cURL to console using debugDescription variable. However, if used through API facade, you no longer know that you are using `Alamofire.Request`, then how do you allow using such feature without major headaches?
2020

2121
### Our solution
2222

@@ -106,7 +106,7 @@ let request = tron.download(path: "file", destination: destination, resumingFrom
106106

107107
#### Performing uploads and downloads
108108

109-
All downloads and uploads(except for multipart) use the same `APIRequest` method:
109+
All downloads and uploads (except for multipart) use the same `APIRequest` method:
110110

111111
```swift
112112
request.perform(success: { result in }, failure: { error in })
@@ -116,7 +116,7 @@ Old `performWithSuccess(_:failure:)` method is deprecated and will be removed in
116116

117117
#### Perform with completion block
118118

119-
Since we no longer hide Alamofire from developer, we are now able to provide perform method with Alamofire completion block, which can be used in several useful ways, for example observing request timeline:
119+
Since we no longer hide Alamofire from developer, we are now able to provide perform method with `Alamofire.Response` completion block, which can be used in several useful ways, for example observing request timeline:
120120

121121
```swift
122122
request.perform(completion: { response in

0 commit comments

Comments
 (0)