接口的使用
org.springframework.test.web.reactive.server.WebTestClient.RequestHeadersSpec
使用WebTestClient.RequestHeadersSpec的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.test.web.reactive.server中WebTestClient.RequestHeadersSpec的使用
类型参数类型为WebTestClient.RequestHeadersSpec的org.springframework.test.web.reactive.server中的类 修饰符和类型 接口 说明 static interface
WebTestClient.RequestHeadersSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for adding request headers and performing an exchange.static interface
WebTestClient.RequestHeadersUriSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for providing request headers and the URI of a request.static interface
WebTestClient.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>>
Specification for providing the URI of a request.org.springframework.test.web.reactive.server中WebTestClient.RequestHeadersSpec的子接口 修饰符和类型 接口 说明 static interface
WebTestClient.RequestBodySpec
Specification for providing body of a request.static interface
WebTestClient.RequestBodyUriSpec
Specification for providing the body and the URI of a request.static interface
WebTestClient.RequestHeadersUriSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for providing request headers and the URI of a request.返回WebTestClient.RequestHeadersSpec的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 WebTestClient.RequestHeadersSpec<?>
WebTestClient.RequestBodySpec. body(Object producer, Class<?> elementClass)
Set the body from the given producer.WebTestClient.RequestHeadersSpec<?>
WebTestClient.RequestBodySpec. body(Object producer, ParameterizedTypeReference<?> elementTypeRef)
Set the body from the given producer.WebTestClient.RequestHeadersSpec<?>
WebTestClient.RequestBodySpec. body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request to the givenBodyInserter
.<T,S extends org.reactivestreams.Publisher<T>>
WebTestClient.RequestHeadersSpec<?>WebTestClient.RequestBodySpec. body(S publisher, Class<T> elementClass)
Set the body from the givenPublisher
.<T,S extends org.reactivestreams.Publisher<T>>
WebTestClient.RequestHeadersSpec<?>WebTestClient.RequestBodySpec. body(S publisher, ParameterizedTypeReference<T> elementTypeRef)
Variant ofWebTestClient.RequestBodySpec.body(Publisher, Class)
that allows providing element type information with generics.WebTestClient.RequestHeadersSpec<?>
WebTestClient.RequestBodySpec. bodyValue(Object body)
Set the body to the givenObject
value.WebTestClient.RequestHeadersSpec<?>
WebTestClient.RequestBodySpec. syncBody(Object body)
已过时。as of Spring Framework 5.2 in favor ofWebTestClient.RequestBodySpec.bodyValue(Object)