We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74139c8 commit b0cba58Copy full SHA for b0cba58
README.md
@@ -34,8 +34,7 @@ Wondered? That's only little part of what you will get from this lib! 🍻
34
### How to send GET request
35
36
```swift
37
-APIRequest<ResponseModel>("endpoint")
38
- .onSuccess { model in
+APIRequest<ResponseModel>("endpoint").onSuccess { model in
39
//here's your decoded model!
40
//no need to check http.statusCode, I already did it for you! By default it's 200 OK
41
//of course you can choose which statusCode is equal to success (look at the `POST` and `DELETE` examples below)
0 commit comments