Closed sdeleuze closed 6 years ago
DefaultCoroutineWebClient seems not supporting baseUrl definition at WebClient level. For example, see https://github.com/sdeleuze/spring-kotlin-deepdive/blob/step3-coroutine/src/test/kotlin/io/spring/deepdive/HtmlTests.kt which fails if you define DefaultCoroutineWebClient(WebClient.create("http://localhost:$port")) and just use relative url like client.get().uri("/api/user/").
DefaultCoroutineWebClient
baseUrl
WebClient
DefaultCoroutineWebClient(WebClient.create("http://localhost:$port"))
client.get().uri("/api/user/")
Fixed in 0.3.1.
Use CoroutineWebClient.create("http://localhost:$port").get().uri("/api/user/").
CoroutineWebClient.create("http://localhost:$port").get().uri("/api/user/")
DefaultCoroutineWebClient
seems not supportingbaseUrl
definition atWebClient
level. For example, see https://github.com/sdeleuze/spring-kotlin-deepdive/blob/step3-coroutine/src/test/kotlin/io/spring/deepdive/HtmlTests.kt which fails if you defineDefaultCoroutineWebClient(WebClient.create("http://localhost:$port"))
and just use relative url likeclient.get().uri("/api/user/")
.