Controller Endpoint Possible return types

Hi!

I am trying to figure out what classes can I specify in controller methods return type.

I already know that I can return Result, CompletionStage<Result> and F.Promise<Result> (for older versions?), but is there a place that documents all the possible return types?

Thanks!

See https://www.playframework.com/documentation/2.8.x/JavaAsync#Creating-non-blocking-actions

It’s either CompletionStage<Result> or Result (in Play Java).

1 Like