spring-framework / org.springframework.web.reactive.function.server / EntityResponse / fromObject

fromObject

open static fun <T : Any> fromObject(t: T): Builder

Create a builder with the given object.

Parameters

t - the object that represents the body of the response

- the type of the elements contained in the publisher

Return
the created builder