spring-framework / org.springframework.test.web.servlet.htmlunit / MockMvcWebClientBuilder / withDelegate

withDelegate

open fun withDelegate(webClient: WebClient): MockMvcWebClientBuilder

Supply the WebClient that the client built by this builder should delegate to when processing non-WebRequestMatcher requests.

Parameters

webClient - the WebClient to delegate to for requests that do not match; never null

Return
this builder for further customization

See Also
#build()