Example usage for org.springframework.web.reactive.function.server ServerRequest uri

List of usage examples for org.springframework.web.reactive.function.server ServerRequest uri

Introduction

In this page you can find the example usage for org.springframework.web.reactive.function.server ServerRequest uri.

Prototype

URI uri();

Source Link

Document

Get the request URI.

Usage

From source file:org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler.java

private String formatRequest(ServerRequest request) {
    String rawQuery = request.uri().getRawQuery();
    String query = StringUtils.hasText(rawQuery) ? "?" + rawQuery : "";
    return "HTTP " + request.methodName() + " \"" + request.path() + query + "\"";
}