Guest User

Untitled

a guest
Mar 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. final Mono<ClientResponse> postResponse =
  2. client
  3. .post()
  4. .uri("/people")
  5. .body(Mono.just(record), Person.class)
  6. .accept(APPLICATION_JSON)
  7. .exchange();
  8. postResponse
  9. .map(ClientResponse::statusCode)
  10. .subscribe(status -> System.out.println("POST: " + status.getReasonPhrase()));
Add Comment
Please, Sign In to add comment