APISonar


reactor.core.publisher.Mono.log

> reactor > core > publisher > Mono > log
reactor APIs core APIs publisher APIs Mono APIs log APIs

Example 1
private Mono<ClientResponse> post(URI uri, String destination, Object value) {
		Object body = value;
		if (value instanceof Message) {
			Message<?> message = (Message<?>) value;
			body = message.getPayload();
		}
		Mono<ClientResponse> result = this.client.post().uri(uri)
				.headers(headers -> headers(headers, destination, value)).syncBody(body)
				.exchange();
		if (this.debug) {
			result = result.log();
		}
		return result;
	}