接口的使用
org.springframework.test.web.reactive.server.WebTestClient.RequestBodySpec
使用WebTestClient.RequestBodySpec的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient.org.springframework.test.web.reactive.server中WebTestClient.RequestBodySpec的使用
org.springframework.test.web.reactive.server中WebTestClient.RequestBodySpec的子接口 修饰符和类型 接口 说明 static interfaceWebTestClient.RequestBodyUriSpecSpecification for providing the body and the URI of a request.返回WebTestClient.RequestBodySpec的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 WebTestClient.RequestBodySpecWebTestClient.RequestBodySpec. contentLength(long contentLength)Set the length of the body in bytes, as specified by theContent-Lengthheader.WebTestClient.RequestBodySpecWebTestClient.RequestBodySpec. contentType(MediaType contentType)Set the media type of the body, as specified by theContent-Typeheader.