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
}
}
}
}