Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DispatcherHandler.handleResult() of spring webflux 6 #11210

Closed
jaehong-kim opened this issue Jul 2, 2024 · 0 comments
Closed

Update DispatcherHandler.handleResult() of spring webflux 6 #11210

jaehong-kim opened this issue Jul 2, 2024 · 0 comments
Assignees
Milestone

Comments

@jaehong-kim
Copy link
Contributor

Update DispatcherHandler.handleResult() of spring webflux 6

spring 6
org.springframework.web.reactive.DispatcherHandler

        public Mono<Void> handle(ServerWebExchange exchange) {
		if (this.handlerMappings == null) {
			return createNotFoundError();
		}
		if (CorsUtils.isPreFlightRequest(exchange.getRequest())) {
			return handlePreFlight(exchange);
		}
		return Flux.fromIterable(this.handlerMappings)
				.concatMap(mapping -> mapping.getHandler(exchange))
				.next()
				.switchIfEmpty(createNotFoundError())
				.onErrorResume(ex -> handleResultMono(exchange, Mono.error(ex)))
				.flatMap(handler -> handleRequestWith(exchange, handler));
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant