RxJava

The rxjava extension package for Fuel.

Installation

You can download and install fuel-rxjava with Maven and Gradle. The rxjava package has the following dependencies:

compile 'com.github.kittinunf.fuel:fuel:<latest-version>'
compile 'com.github.kittinunf.fuel:fuel-rxjava:<latest-version>'

Usage

See RxFuel.kt

Responses

  • Fuel supports RxJava right off the box.

      "https://www.example.com/photos/1".httpGet()
        .rxObject(Photo.Deserializer())
        .subscribe { /* do something */ }
  • There are extensions over Request that provide RxJava 2.x Single<Result<T, FuelError>> as return type.

Last updated

Was this helpful?