Retrofit 2 Project Reactor Adapter

A CallAdapter.Factory for Project Reactor types.

License

License

Categories

Categories

React User Interface Web Frameworks Retrofit Net HTTP Clients Reactor Container Microservices Reactive libraries
GroupId

GroupId

com.jakewharton.retrofit
ArtifactId

ArtifactId

retrofit2-reactor-adapter
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Retrofit 2 Project Reactor Adapter
A CallAdapter.Factory for Project Reactor types.
Project URL

Project URL

https://github.com/JakeWharton/retrofit2-reactor-adapter/
Source Code Management

Source Code Management

https://github.com/JakeWharton/retrofit2-reactor-adapter/

Download retrofit2-reactor-adapter

How to add to project

<!-- https://jarcasting.com/artifacts/com.jakewharton.retrofit/retrofit2-reactor-adapter/ -->
<dependency>
    <groupId>com.jakewharton.retrofit</groupId>
    <artifactId>retrofit2-reactor-adapter</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.jakewharton.retrofit/retrofit2-reactor-adapter/
implementation 'com.jakewharton.retrofit:retrofit2-reactor-adapter:2.1.0'
// https://jarcasting.com/artifacts/com.jakewharton.retrofit/retrofit2-reactor-adapter/
implementation ("com.jakewharton.retrofit:retrofit2-reactor-adapter:2.1.0")
'com.jakewharton.retrofit:retrofit2-reactor-adapter:jar:2.1.0'
<dependency org="com.jakewharton.retrofit" name="retrofit2-reactor-adapter" rev="2.1.0">
  <artifact name="retrofit2-reactor-adapter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.jakewharton.retrofit', module='retrofit2-reactor-adapter', version='2.1.0')
)
libraryDependencies += "com.jakewharton.retrofit" % "retrofit2-reactor-adapter" % "2.1.0"
[com.jakewharton.retrofit/retrofit2-reactor-adapter "2.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar 2.3.0
io.projectreactor : reactor-core jar 3.1.2.RELEASE

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
com.squareup.okhttp3 : mockwebserver jar 3.9.1
com.google.guava : guava jar 23.6-jre
com.google.truth : truth jar 0.37
io.projectreactor : reactor-test jar 3.1.2.RELEASE

Project Modules

There are no modules declared in this project.

Retrofit 2 Project Reactor Adapter

A Project Reactor CallAdapter.Factory implementation for Retrofit 2.

Usage

Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://api.example.com")
    .addCallAdapterFactory(ReactorCallAdapterFactory.create())
    .build();

Available types:

  • Flux<T>, Flux<Response<T>>, and Flux<Result<T>> where T is the body type.
  • Mono<T>, Mono<Response<T>> and Mono<Result<T>> where T is the body type.

Download

Gradle:

compile 'com.jakewharton.retrofit:retrofit2-reactor-adapter:2.1.0'

or Maven:

<dependency>
  <groupId>com.jakewharton.retrofit</groupId>
  <artifactId>retrofit2-reactor-adapter</artifactId>
  <version>2.1.0</version>
</dependency>

Snapshot versions are available in the Sonatype 'snapshots' repository: https://oss.sonatype.org/content/repositories/snapshots/

License

Copyright 2016 Jake Wharton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
2.1.0
2.0.0
1.0.0