接口的使用
cn.taketoday.web.handler.function.RenderingResponse.Builder
程序包
说明
Provides the types that make up Infra functional web framework.
-
cn.taketoday.web.handler.function中RenderingResponse.Builder的使用
修饰符和类型方法说明DefaultRenderingResponseBuilder.cookie(HttpCookie cookie) RenderingResponse.Builder.cookie(HttpCookie cookie) Add the given cookie to the response.DefaultRenderingResponseBuilder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) RenderingResponse.Builder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.static RenderingResponse.BuilderCreate a builder with the given template name.static RenderingResponse.BuilderRenderingResponse.from(RenderingResponse other) Create a builder with the template name, status code, headers and model of the given response.Add the given header value(s) under the given name.DefaultRenderingResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) RenderingResponse.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.DefaultRenderingResponseBuilder.modelAttribute(Object attribute) DefaultRenderingResponseBuilder.modelAttribute(String name, Object value) RenderingResponse.Builder.modelAttribute(Object attribute) Add the supplied attribute to the model using a generated name.RenderingResponse.Builder.modelAttribute(String name, Object value) Add the supplied attribute value under the supplied name.DefaultRenderingResponseBuilder.modelAttributes(Object... attributes) DefaultRenderingResponseBuilder.modelAttributes(Collection<?> attributes) DefaultRenderingResponseBuilder.modelAttributes(Map<String, ?> attributes) RenderingResponse.Builder.modelAttributes(Object... attributes) Copy all attributes in the supplied array into the model, using attribute name generation for each element.RenderingResponse.Builder.modelAttributes(Collection<?> attributes) Copy all attributes in the suppliedCollectioninto the model, using attribute name generation for each element.RenderingResponse.Builder.modelAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto the model.DefaultRenderingResponseBuilder.status(int status) DefaultRenderingResponseBuilder.status(HttpStatusCode status) RenderingResponse.Builder.status(int status) Set the HTTP status.RenderingResponse.Builder.status(HttpStatusCode status) Set the HTTP status.