接口的使用
org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec
使用WebClient.RequestHeadersSpec的程序包 程序包 说明 org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client中WebClient.RequestHeadersSpec的使用
类型参数类型为WebClient.RequestHeadersSpec的org.springframework.web.reactive.function.client中的类 修饰符和类型 接口 说明 static interface
WebClient.RequestHeadersSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers leading up to the exchange.static interface
WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers and URI for a request.static interface
WebClient.UriSpec<S extends WebClient.RequestHeadersSpec<?>>
Contract for specifying the URI for a request.org.springframework.web.reactive.function.client中WebClient.RequestHeadersSpec的子接口 修饰符和类型 接口 说明 static interface
WebClient.RequestBodySpec
Contract for specifying request headers and body leading up to the exchange.static interface
WebClient.RequestBodyUriSpec
Contract for specifying request headers, body and URI for a request.static interface
WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers and URI for a request.返回WebClient.RequestHeadersSpec的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 WebClient.RequestHeadersSpec<?>
WebClient.RequestBodySpec. body(Object producer, Class<?> elementClass)
Variant ofWebClient.RequestBodySpec.body(Publisher, Class)
that allows using any producer that can be resolved toPublisher
viaReactiveAdapterRegistry
.WebClient.RequestHeadersSpec<?>
WebClient.RequestBodySpec. body(Object producer, ParameterizedTypeReference<?> elementTypeRef)
Variant ofWebClient.RequestBodySpec.body(Publisher, ParameterizedTypeReference)
that allows using any producer that can be resolved toPublisher
viaReactiveAdapterRegistry
.WebClient.RequestHeadersSpec<?>
WebClient.RequestBodySpec. body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request using the given body inserter.<T,P extends org.reactivestreams.Publisher<T>>
WebClient.RequestHeadersSpec<?>WebClient.RequestBodySpec. body(P publisher, Class<T> elementClass)
Shortcut forWebClient.RequestBodySpec.body(BodyInserter)
with a Publisher inserter.<T,P extends org.reactivestreams.Publisher<T>>
WebClient.RequestHeadersSpec<?>WebClient.RequestBodySpec. body(P publisher, ParameterizedTypeReference<T> elementTypeRef)
Variant ofWebClient.RequestBodySpec.body(Publisher, Class)
that allows providing element type information with generics.WebClient.RequestHeadersSpec<?>
WebClient.RequestBodySpec. bodyValue(Object body)
Shortcut forWebClient.RequestBodySpec.body(BodyInserter)
with a value inserter.WebClient.RequestHeadersSpec<?>
WebClient.RequestBodySpec. syncBody(Object body)
已过时。as of Spring Framework 5.2 in favor ofWebClient.RequestBodySpec.bodyValue(Object)
类型变量类型为WebClient.RequestHeadersSpec的org.springframework.web.reactive.function.client中的方法参数 修饰符和类型 方法 说明 WebClient.Builder
WebClient.Builder. defaultRequest(Consumer<WebClient.RequestHeadersSpec<?>> defaultRequest)
Provide a consumer to modify every request being built just before the call toexchange()
.