Skip to content

Instantly share code, notes, and snippets.

@tomas-langer
Last active September 8, 2022 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomas-langer/d4f2f5295bfddd2132e7b284ce1a1c40 to your computer and use it in GitHub Desktop.
Save tomas-langer/d4f2f5295bfddd2132e7b284ce1a1c40 to your computer and use it in GitHub Desktop.
Medium-Nima-Reactive-One
private void one(ServerRequest req, ServerResponse res) {
Single<String> response = client.get()
.request(String.class);
response.forSingle(res::send)
.exceptionally(res::send);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment