<Repeat request if get 202 code Android Kotlin RxJ...
# stackoverflow
u
Repeat request if get 202 code Android Kotlin RxJava 2 I need to implement a request retry if 202 code comes using RxJava 2, the problem is that when I try to do this, then with 202 code the response from the server is empty, and with a successful response, the desired model comes, so with 202 code I get an error, and further processing by the response code does not occur. @GET("dogs") fun getDogs(): Observable This is response processing. private inline fun Observable.handle202(): Observable { return this .flatMap {...