spring-framework / org.springframework.web.reactive.function.server / RenderingResponse

RenderingResponse

interface RenderingResponse : ServerResponse

Rendering-specific subtype of ServerResponse that exposes model and template data.

Author
Arjen Poutsma

Since
5.0

Functions

create

open static fun create(name: String): Builder

Create a builder with the given template name.

from

open static fun from(other: RenderingResponse): Builder

Create a builder with the template name, status code, headers and model of the given response.

model

abstract fun model(): MutableMap<String, Any>

Return the unmodifiable model map.

name

abstract fun name(): String

Return the name of the template to be rendered.