Ratpack reactor library


License

License

Categories

Categories

React User Interface Web Frameworks Reactor Container Microservices Reactive libraries Ratpack
GroupId

GroupId

me.drmaas
ArtifactId

ArtifactId

ratpack-reactor
Last Version

Last Version

0.0.8
Release Date

Release Date

Type

Type

jar
Description

Description

Ratpack reactor library
Ratpack reactor library
Project URL

Project URL

https://github.com/drmaas/ratpack-reactor
Source Code Management

Source Code Management

https://github.com/drmaas/ratpack-reactor

Download ratpack-reactor

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
io.ratpack : ratpack-core jar 1.5.1
io.projectreactor : reactor-core jar 3.1.2.RELEASE
io.projectreactor : reactor-test jar 3.1.2.RELEASE

test (4)

Group / Artifact Type Version
org.codehaus.groovy : groovy jar 2.4.13
org.spockframework : spock-unitils jar 1.1-groovy-2.4
io.ratpack : ratpack-groovy-test jar 1.5.1
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

ratpack-reactor

Ratpack support for reactor

Gradle

compile 'me.drmaas:ratpack-reactor:x.x.x'

Maven

<dependency>
    <groupId>me.drmaas</groupId>
    <artifactId>ratpack-reactor</artifactId>
    <version>x.x.x/version>
</dependency>

Examples

Flux

ratpack {
  handlers {
    get(":value") {
      flux(Blocking.get {
        pathTokens.value
      }).promise().then {
        render it
      }
    }
  }
}

Mono

ratpack {
  handlers {
    get(":value") {
      mono(Blocking.get {
        pathTokens.value
      }).promiseSingle().then {
        render it
      }
    }
  }
}

Versions

Version
0.0.8
0.0.7
0.0.3