Uses of Interface
org.springframework.web.servlet.function.ServerRequest.Builder
Packages that use ServerRequest.Builder
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of ServerRequest.Builder in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return ServerRequest.BuilderModifier and TypeMethodDescriptionAdd an attribute with the given name and value.ServerRequest.Builder.attributes(Consumer<Map<String, Object>> attributesConsumer) Manipulate this request's attributes with the given consumer.ServerRequest.Builder.body(byte[] body) Set the body of the request.Set the body of the request to the UTF-8 encoded bytes of the given string.Add a cookie with the given name and value(s).ServerRequest.Builder.cookies(Consumer<MultiValueMap<String, Cookie>> cookiesConsumer) Manipulate this request's cookies with the given consumer.static ServerRequest.BuilderServerRequest.from(ServerRequest other) Create a builder with the status, headers, and cookies of the given request.Add the given header value(s) under the given name.ServerRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this request's headers with the given consumer.ServerRequest.Builder.method(HttpMethod method) Set the method of the request.Add a parameter with the given name and value.ServerRequest.Builder.params(Consumer<MultiValueMap<String, String>> paramsConsumer) Manipulate this request's parameters with the given consumer.ServerRequest.Builder.remoteAddress(InetSocketAddress remoteAddress) Set the remote address of the request.Set the URI of the request.