接口的使用
org.springframework.web.reactive.function.server.ServerRequest.Builder
使用ServerRequest.Builder的程序包 程序包 说明 org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.function.server中ServerRequest.Builder的使用
返回ServerRequest.Builder的org.springframework.web.reactive.function.server中的方法 修饰符和类型 方法 说明 ServerRequest.BuilderServerRequest.Builder. attribute(String name, Object value)Add an attribute with the given name and value.ServerRequest.BuilderServerRequest.Builder. attributes(Consumer<Map<String,Object>> attributesConsumer)Manipulate this request's attributes with the given consumer.ServerRequest.BuilderServerRequest.Builder. body(String body)Set the body of the request to the UTF-8 encoded bytes of the given string.ServerRequest.BuilderServerRequest.Builder. body(reactor.core.publisher.Flux<DataBuffer> body)Set the body of the request.ServerRequest.BuilderServerRequest.Builder. cookie(String name, String... values)Add a cookie with the given name and value(s).ServerRequest.BuilderServerRequest.Builder. cookies(Consumer<MultiValueMap<String,HttpCookie>> cookiesConsumer)Manipulate this request's cookies with the given consumer.static ServerRequest.BuilderServerRequest. from(ServerRequest other)Create a builder with the message readers, method name, URI, headers, cookies, and attributes of the given request.ServerRequest.BuilderServerRequest.Builder. header(String headerName, String... headerValues)Add the given header value(s) under the given name.ServerRequest.BuilderServerRequest.Builder. headers(Consumer<HttpHeaders> headersConsumer)Manipulate this request's headers with the given consumer.ServerRequest.BuilderServerRequest.Builder. method(HttpMethod method)Set the method of the request.ServerRequest.BuilderServerRequest.Builder. uri(URI uri)Set the URI of the request.