接口的使用
cn.taketoday.web.handler.function.RenderingResponse.ViewBuilder
程序包
说明
Provides the types that make up Infra functional web framework.
-
cn.taketoday.web.handler.function中RenderingResponse.ViewBuilder的使用
修饰符和类型方法说明ModelAndViewRenderingResponseBuilder.cookie(HttpCookie cookie) RenderingResponse.ViewBuilder.cookie(HttpCookie cookie) Add the given cookie to the response.ModelAndViewRenderingResponseBuilder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) RenderingResponse.ViewBuilder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.RenderingResponse.create(ModelAndView view) Create a builder with the given template name.Add the given header value(s) under the given name.ModelAndViewRenderingResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) RenderingResponse.ViewBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.ModelAndViewRenderingResponseBuilder.status(int status) ModelAndViewRenderingResponseBuilder.status(HttpStatusCode status) RenderingResponse.ViewBuilder.status(int status) Set the HTTP status.RenderingResponse.ViewBuilder.status(HttpStatusCode status) Set the HTTP status.