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

Support default methods in @HttpExchange interface #28491

Closed
wonwoo opened this issue May 20, 2022 · 0 comments
Closed

Support default methods in @HttpExchange interface #28491

wonwoo opened this issue May 20, 2022 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@wonwoo
Copy link
Contributor

wonwoo commented May 20, 2022

@HttpExchange("http://localhost:8080")
public interface GreetingClient {

    @GetExchange("/greeting")
    Flux<Greeting> greetings();

    @PostExchange("/greeting")
    Mono<Greeting> greetings(@RequestBody Greeting greeting);

    default Flux<Greeting> defaultMethod() {
        return greetings(new Greeting("default method test"))
                .flatMapMany(it -> greetings());
    }
}

defaultMethod method I hope it works!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 20, 2022
@rstoyanchev rstoyanchev self-assigned this May 20, 2022
@rstoyanchev rstoyanchev added this to the 6.0.0-M5 milestone May 20, 2022
@rstoyanchev rstoyanchev added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels May 20, 2022
@rstoyanchev rstoyanchev changed the title @HttpExchange for default methods support Support default methods in @HttpExchange interface May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants