Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Latest commit

 

History

History
55 lines (46 loc) · 954 Bytes

README.adoc

File metadata and controls

55 lines (46 loc) · 954 Bytes

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