[Documentation] Update ReactiveSwift.md & RxSwift.md

This commit is contained in:
Łukasz Mróz
2017-09-02 20:34:56 +02:00
parent 4adf130dd3
commit eaca948938
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ provider.reactive.requestWithProgress(.zen).start { event in
}
```
For `ReactiveSwiftMoyaProvider`, the network request is not started
It's important to remember that network request is not started
until the signal is subscribed to. If the subscription to the signal
is disposed of before the request completes, the request is canceled.
@@ -60,11 +60,11 @@ then it sends an error, instead. The error's `code` is the failing
request's status code, if any, and the response data, if any.
The `Moya.Response` class contains a `statusCode`, some `data`,
and a(n optional) `URLResponse`. You can use these values however
and a(n optional) `HTTPURLResponse`. You can use these values however
you like in `startWithNext` or `map` calls.
To make things even awesomer, Moya provides some extensions to
`SignalProducer` (and `RACSignal`) that make dealing with `Moya.Responses`
`SignalProducer` that make dealing with `Moya.Responses`
really easy.
- `filter(statusCodes:)` takes a range of status codes. If the
+4 -4
View File
@@ -44,7 +44,7 @@ provider.rx.requestWithProgress(.zen).subscribe { event in
}
```
For `RxMoyaProvider`, the network request is not started
It's important to remember that network request is not started
until the signal is subscribed to. If the subscription to the signal
is disposed of before the request completes, the request is canceled.
@@ -58,11 +58,11 @@ then it sends an error, instead. The error's `code` is the failing
request's status code, if any, and the response data, if any.
The `Moya.Response` class contains a `statusCode`, some `data`,
and a(n optional) `URLResponse`. You can use these values however
you like in `subscribeNext` or `map` calls.
and a(n optional) `HTTPURLResponse`. You can use these values however
you like in `subscribe` or `map` calls.
To make things even awesomer, Moya provides some extensions to
`Observable` that make dealing with `MoyaResponses`really easy.
`Single` and `Observable` that make dealing with `MoyaResponses`really easy.
- `filter(statusCodes:)` takes a range of status codes. If the
response's status code is not within that range, an error is