接口的使用
org.springframework.web.reactive.function.client.WebClient.RequestBodySpec
使用WebClient.RequestBodySpec的程序包 程序包 说明 org.springframework.web.reactive.function.client Provides a reactiveWebClientthat builds on top of theorg.springframework.http.client.reactivereactive HTTP adapter layer.org.springframework.web.reactive.function.client中WebClient.RequestBodySpec的使用
org.springframework.web.reactive.function.client中WebClient.RequestBodySpec的子接口 修饰符和类型 接口 说明 static interfaceWebClient.RequestBodyUriSpecContract for specifying request headers, body and URI for a request.返回WebClient.RequestBodySpec的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 WebClient.RequestBodySpecWebClient.RequestBodySpec. contentLength(long contentLength)Set the length of the body in bytes, as specified by theContent-Lengthheader.WebClient.RequestBodySpecWebClient.RequestBodySpec. contentType(MediaType contentType)Set the media type of the body, as specified by theContent-Typeheader.